-
-
Save tomdale/969522 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
contentView: SC.SourceListView.design({ | |
contentBinding: 'Authoring.reportTemplatesArrayController.content', | |
selectionBinding: 'Authoring.reportTemplatesArrayController.selection', | |
exampleView: SC.View.design({ | |
classNames: 'sc-list-item-view'.w(), | |
childViews: 'nameLabel'.w(), | |
/** | |
Add 'sel' class in render method. | |
*/ | |
render: function(context) { | |
if (this.get('isSelected')) { | |
context.addClass('sel'); | |
} | |
return sc_super(); | |
}, | |
nameLabel: SC.LabelView.design({ | |
layout: { left: 10, width: 100, height: 18 }, | |
valueBinding: '.parentView*content.name' | |
}) | |
}), | |
rowHeight: 21, | |
canEditContent: NO, | |
canDeleteContent: NO | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment