Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/phuix/PHUIXActionView.js
| Show All 10 Lines | JX.install('PHUIXActionView', { | ||||
| members: { | members: { | ||||
| _node: null, | _node: null, | ||||
| _name: null, | _name: null, | ||||
| _icon: 'none', | _icon: 'none', | ||||
| _disabled: false, | _disabled: false, | ||||
| _label: false, | _label: false, | ||||
| _handler: null, | _handler: null, | ||||
| _selected: false, | _selected: false, | ||||
| _divider: false, | |||||
| _iconNode: null, | _iconNode: null, | ||||
| _nameNode: null, | _nameNode: null, | ||||
| setDisabled: function(disabled) { | setDisabled: function(disabled) { | ||||
| this._disabled = disabled; | this._disabled = disabled; | ||||
| JX.DOM.alterClass( | JX.DOM.alterClass( | ||||
| this.getNode(), | this.getNode(), | ||||
| Show All 9 Lines | setLabel: function(label) { | ||||
| this._label = label; | this._label = label; | ||||
| JX.DOM.alterClass( | JX.DOM.alterClass( | ||||
| this.getNode(), | this.getNode(), | ||||
| 'phabricator-action-view-label', | 'phabricator-action-view-label', | ||||
| label); | label); | ||||
| return this; | return this; | ||||
| }, | }, | ||||
| setDivider: function(divider) { | |||||
| this._divider = divider; | |||||
| JX.DOM.alterClass( | |||||
| this.getNode(), | |||||
| 'phabricator-action-view-type-divider', | |||||
| divider); | |||||
| return this; | |||||
| }, | |||||
| setSelected: function(selected) { | setSelected: function(selected) { | ||||
| this._selected = selected; | this._selected = selected; | ||||
| JX.DOM.alterClass( | JX.DOM.alterClass( | ||||
| this.getNode(), | this.getNode(), | ||||
| 'phabricator-action-view-selected', | 'phabricator-action-view-selected', | ||||
| selected); | selected); | ||||
| return this; | return this; | ||||
| ▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines | |||||