Skip to content

Instantly share code, notes, and snippets.

@dawsontoth
Last active December 25, 2015 12:49
Show Gist options
  • Save dawsontoth/6978964 to your computer and use it in GitHub Desktop.
Save dawsontoth/6978964 to your computer and use it in GitHub Desktop.
(function() {
function ViewModel(data) {
this.notes = data.rowData.notes;
this.win = lib.ui.actionBarWindow.create({
title: lib.language.translate('common','notes-text')
});
this.display = display;
this.display();
return this.win;
};
function display() {
var notesView = Ti.UI.createScrollView(lib.ui.style.get('view-with-action-bar', {
scrollType: 'vertical'
}));
notesView.add(Ti.UI.createLabel(lib.ui.style.get('job-details-notes-label', {
text: this.notes
})));
this.win.add(notesView);
};
module.exports = ViewModel;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment