Created
June 7, 2014 02:06
-
-
Save awsp/25b7f5366a74a90b2089 to your computer and use it in GitHub Desktop.
Problem with exampleView
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
toolbarBeltView: SC.GridView.design({ | |
layout: { centerX: 0, height: 56, width: 68 * MyApp.toolbarMenuItemsController.get('length') }, | |
columnWidth: 68, | |
rowHeight: 56, | |
classNames: ['header-background'], | |
contentBinding: 'MyApp.toolbarMenuItemsController.arrangedObjects', | |
exampleView: SC.View.design(SC.Control, { | |
childViews: 'textLabelView imageLabelView' . w(), | |
textLabelView: SC.LabelView.design({ | |
classNames: 'text-center' . w(), | |
layout: { bottom: 0, height: 20, centerY: 0 }, | |
valueBinding: SC.Binding.oneWay('.parentView.content.title') | |
}), | |
imageLabelView: SC.View.design({ | |
layout: { width: 40, height: 28, centerX: 0, centerY: -6 }, | |
classNames: 'text-center' . w(), | |
render: function(context) { | |
// this.get('image'), this.get('title') return `undefined` | |
context.begin('div'); | |
context.addClass('fa fa-database fa-2x'); | |
context.end(); | |
} | |
}) | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment