Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Binding bug??
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