Sha256: 30fe24e71c8dae46cf0bcb68a985d384132eac67729e9ef4c295b7cda6f1112f
Contents?: true
Size: 1.41 KB
Versions: 38
Compression:
Stored size: 1.41 KB
Contents
/* RSence * Copyright 2006 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 ** HStringView is a view component that represents a non-editable line of text. ** Commonly, stringview is used as a label to control elements ** that do not have implicit labels (text fields, checkboxes and radio buttons, and menus). ** Some form controls automatically have labels associated with them (press buttons) ** while most do not have (text fields, checkboxes and radio buttons, and sliders etc.). ** ** = Instance variables ** +type+:: '[HStringView]' ** +value+:: The string that this string view displays when drawn. ***/ var//RSence.Controls HStringView = HControl.extend({ componentName: "stringview", /** = Description * setStyle function * **/ setStyle: function(_name, _value, _cacheOverride) { if (!this['markupElemIds']||!this.markupElemIds['value']) { return this; } ELEM.setStyle(this.markupElemIds.value, _name, _value, _cacheOverride); return this; }, /** = Description * refreshLable function * **/ refreshLabel: function() { if(this.markupElemIds) { if(this.markupElemIds.value) { ELEM.setAttr(this.markupElemIds.value, 'title', this.label); } } } });
Version data entries
38 entries across 38 versions & 2 rubygems