Skip to content

Instantly share code, notes, and snippets.

@jberthet
Created May 24, 2013 16:42
Show Gist options
  • Select an option

  • Save jberthet/5644796 to your computer and use it in GitHub Desktop.

Select an option

Save jberthet/5644796 to your computer and use it in GitHub Desktop.
Bisk.FieldSetView = SC.View.extend({
label: '',
classNames: 'fieldset'.w(),
render: function(ctx) {
ctx = ctx.begin()
.addClass('fieldset-label')
.push(this.get('label'))
.end();
sc_super();
}
})
// Somewhere else
commandeZone: Bisk.FieldSetView.extend({
label: 'Bisk.commandeZone.Title'.loc(),
isVisible: 'Bisk.commandController.commandLoaded',
childViews: 'view1 view2'.w()
//....
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment