Sha256: c54155be945b0aeccd674d73e402d47d8d6c9e4ef92fbe03fe32b1f13d6dd9be
Contents?: true
Size: 1.43 KB
Versions: 5
Compression:
Stored size: 1.43 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. ***/ HStringView = HControl.extend({ componentName: "stringview", componentBehaviour: ['view','control','text'], /** = Description * setStyle function * **/ setStyle: function(_name, _value, _cacheOverride) { if (!this['markupElemIds']||!this.markupElemIds['value']) { return; } 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
5 entries across 5 versions & 1 rubygems