js/controls/button/button.js in rsence-2.0.0.10.pre vs js/controls/button/button.js in rsence-2.0.0.11
- old
+ new
@@ -11,22 +11,27 @@
** Simple button component, designed to be extended for any
** actual functionality above regular HControl.
** It's limited to 24px height by the default theme, because
** it's much simpler to render that way.
***/
+var//RSence.Controls
HButton = HControl.extend({
+
componentName: 'button',
+
/** = Description
* setStyle function for button.
*
**/
setStyle: function(_name, _value){
ELEM.setStyle(this.markupElemIds.label,_name,_value);
return this;
}
+
});
+
/*** = Description
** Simple HButton extension, operates on its value so it's useful
** for sending button clicks to the server and the like.
** For the value responder, reset the value to 0 when read to make
** the button clickable again.
@@ -34,10 +39,11 @@
** = Value states
** +0+:: Enabled, clickable
** +1+:: Disabled, clicked
** +Other+:: Disabled, not clickable, not clicked
***/
+var//RSence.Controls
HClickButton = HButton.extend({
defaultEvents: {
click: true
},
@@ -56,8 +62,11 @@
click: function(){
if(this.enabled){
this.setValue(1);
}
}
+
});
-HClickValueButton = HClickButton;
\ No newline at end of file
+var//RSence.Controls
+HClickValueButton = HClickButton;
+