Sha256: 655da84bb20befa035744236df0bc099ce235c96d35cf441a3f00697f9571cd5

Contents?: true

Size: 800 Bytes

Versions: 5

Compression:

Stored size: 800 Bytes

Contents

/*   RSence
 *   Copyright 2009 Riassence Inc.
 *   http://riassence.com/
 *
 *   You should have received a copy of the GNU General Public License along
 *   with this software package. If not, contact licensing@riassence.com
 */

/*** = Description
  ** Simple confirm sheet control. Acts like HAlertSheet but has a cancel 
  ** button as well.
  ***/

HConfirmSheet = HAlertSheet.extend({
/** = Description
  * Creates a cancel button.
  *
  **/
  alertButtons: function(){
    this.cancelButton = HClickValueButton.extend({
      click: function(){
        this.setValue( -1 );
      }
    }).nu(
      [ null, null, 60, 23, 76, 8 ],
      this, {
        label: 'Cancel',
        valueObj: this.valueObj,
        events: {
          click: true
        }
      }
    );
    this.base();
  }
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rsence-2.0.0.10.pre js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-2.0.0.9.pre js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-2.0.0.8.pre js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-2.0.0.7.pre js/controls/dialogs/confirm_sheet/confirm_sheet.js
rsence-2.0.0.6.pre js/controls/dialogs/confirm_sheet/confirm_sheet.js