Skip to content

Instantly share code, notes, and snippets.

@janvanderhaegen
Created May 6, 2014 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janvanderhaegen/5feee5f2de90b3a7dd49 to your computer and use it in GitHub Desktop.
Save janvanderhaegen/5feee5f2de90b3a7dd49 to your computer and use it in GitHub Desktop.
var userViewer = $('<a id="userviewer" href="#" target="_self" >' + user.Name + '</a>');
userViewer.appendTo($(".msls-screen-buttons"));
//interaction 1
userViewer.on('click', function () {
myapp.showEditMyProfile(user);
});
contentItem.dataBind("value.Name", function () {
//interaction 2
$("#userviewer").text(contentItem.value.Name);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment