Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/phuix/PHUIXButtonView.js
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | setButtonType: function(button_type) { | ||||
| var is_simple = (this._buttonType == self.BUTTONTYPE_SIMPLE); | var is_simple = (this._buttonType == self.BUTTONTYPE_SIMPLE); | ||||
| JX.DOM.alterClass(node, 'simple', is_simple); | JX.DOM.alterClass(node, 'simple', is_simple); | ||||
| return this; | return this; | ||||
| }, | }, | ||||
| setText: function(text) { | setText: function(text) { | ||||
| JX.DOM.setContent(this._getTextNode(), text); | JX.DOM.setContent(this._getTextNode(), text); | ||||
| this._redraw(); | |||||
| return this; | return this; | ||||
| }, | }, | ||||
| getNode: function() { | getNode: function() { | ||||
| if (!this._node) { | if (!this._node) { | ||||
| var attrs = { | var attrs = { | ||||
| className: 'button' | className: 'button' | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||