Class: Lore::GUI::Hidden
- Inherits:
-
Form_Element
- Object
- Form_Element
- Lore::GUI::Hidden
- Defined in:
- lib/lore/gui/form_element.rb
Overview
Hidden form element (<input type=“hidden” … />). Subclass of Form_Element.
Instance Attribute Summary
Attributes inherited from Form_Element
#attribute_id, #attribute_label, #attribute_name, #attribute_range, #attribute_table, #attribute_value, #id, #mode, #on_change, #on_click, #style, #style_class, #template, #template_file
Instance Method Summary collapse
-
#initialize(_table, _attrib_name, value = nil) ⇒ Hidden
constructor
{{{.
- #string ⇒ Object
Methods inherited from Form_Element
for, #label, #onblur, #onfocus, #print, #set_attribute_style, #set_attribute_value, #set_mode, #setup
Constructor Details
#initialize(_table, _attrib_name, value = nil) ⇒ Hidden
{{{
661 662 663 |
# File 'lib/lore/gui/form_element.rb', line 661 def initialize(_table, _attrib_name, value=nil) setup(_table, _attrib_name, '', nil, value) end |
Instance Method Details
#string ⇒ Object
665 666 667 668 669 670 671 |
# File 'lib/lore/gui/form_element.rb', line 665 def string() attrib = @attribute_name.to_s if !@attribute_table.nil? and @attribute_table != '' then attrib = @attribute_table+'.'+attrib end '<input type="hidden" name="'+attrib+'" value="'+@attribute_value.to_s+'" />' end |