Sha256: a923b2efd135951e0ca2fc45821ec5bae4f311219591935c0029576cc3350b78
Contents?: true
Size: 814 Bytes
Versions: 27
Compression:
Stored size: 814 Bytes
Contents
/*** = Description ** Simple confirm sheet control. Acts like HAlertSheet but has a cancel ** button as well. ***/ var//RSence.Controls HConfirmSheet = HAlertSheet.extend({ /** = Description * Creates a cancel button. * **/ alertButtons: function(){ this.cancelButton = HClickButton.extend({ click: function(){ this.setValue( -1 ); } }).nu( [ null, null, 60, 23, 76, 8 ], this, { label: 'Cancel', valueObj: this.valueObj, events: { click: true } } ); this.base(); }, /** = Description * Binds the same value to cancelButton. * **/ setValueObj: function( valueObj ){ this.base( valueObj ); if ( this['cancelButton'] ) { valueObj.bind( this.cancelButton ); } } });
Version data entries
27 entries across 27 versions & 1 rubygems