-
-
Save workmanw/1058772 to your computer and use it in GitHub Desktop.
Binding bug??
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
Tce.mainPage = SC.Page.design({ | |
// The main pane is made visible on screen as soon as your app is loaded. | |
// Add childViews to this pane for views to display immediately on page | |
// load. | |
mainPane: SC.MainPane.design({ | |
childViews: 'myCustomView'.w(), | |
myCustomView: SC.View.design({ | |
childViews: ['checkbox'], | |
layout: { centerX: 0, centerY: 20, width: 200, height: 18 }, | |
isSelected: YES, | |
checkbox: SC.CheckboxView.design({ | |
layout: { left: 0, top: 0, right: 0, bottom: 0 }, | |
isSelectedBinding: '.parentView.isSelected' | |
}) | |
}) | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment