Sha256: 667abb8a88373c67a476e92846dea72c2a46275fd8d69b71bb9c6e20959c77f4
Contents?: true
Size: 1.05 KB
Versions: 10
Compression:
Stored size: 1.05 KB
Contents
// ========================================================================== // SC.CheckboxView // ========================================================================== require('views/button/button'); /** @class Disclosure triangle button. @extends SC.ButtonView @author Charles Jolley @version 1.0 */ SC.DisclosureView = SC.ButtonView.extend( /** @scope SC.DisclosureView.prototype */ { emptyElement: '<a href="javascript:;" class="sc-disclosure-view sc-button-view button disclosure"><img src="%@" class="button" /><span class="label"></span></a>'.fmt(static_url('blank')), buttonBehavior: SC.TOGGLE_BEHAVIOR, /** This is the value that will be set when the disclosure triangle is toggled open. */ toggleOnValue: YES, /** The value that will be set when the disclosure triangle is toggled closed. */ toggleOffValue: NO, valueBindingDefault: SC.Binding.Bool, init: function() { sc_super() ; if (this.get('value') == this.get('toggleOnValue')) { this.set('isSelected', true) ; } } }) ;
Version data entries
10 entries across 10 versions & 1 rubygems