This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.NoticeCollectionView = SC.TemplateCollectionView.extend({ | |
contentBinding: 'App.noticesListController', | |
tagName: 'div', | |
classNames: ['message', 'notices'], | |
itemView: SC.TemplateView.extend({ | |
tagName: 'p', | |
classNames: ['notice'] | |
}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MT.ReportTemplateContainerView = SC.ContainerView.extend({ | |
contentView: SC.TemplateView.extend({ | |
itemBinding: 'MT.reportTemplates.selectedItem', | |
templateName: 'report_template_show' | |
}), | |
editView: SC.TemplateView.extend({ | |
itemBinding: 'MT.reportTemplates.selectedItem', | |
templateName: 'report_template_edit' | |
}) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('----------------- SANDBOX START -----------------') | |
var contentObjectController = SC.ObjectController.create() | |
var ContentView = SC.View.extend(SC.ContentDisplay, { | |
layout: function() { | |
var something = this.get('content') ? this.get('content') : {get: function(attribute) { return 0;} }; | |
return {top: something.get('row') * 100, left: something.get('column') * 100, height: 100, width: 100}; | |
}.property('content').cacheable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Chatter.userController = SC.ObjectController.create( | |
/** @scope Chatter.userController.prototype */ { | |
loggedInAs: function(){ | |
var user = this.get('content'); | |
return "Logged in as " + user.get('name'); | |
}.property('name').cacheable() | |
}) ; |