Class: Aurita::GUI::Password_Field
- Inherits:
-
Input_Field
- Object
- Array
- Element
- Form_Field
- Input_Field
- Aurita::GUI::Password_Field
- Defined in:
- lib/aurita-gui/form/password_field.rb
Overview
Wrapper for Input_Field, defaults type to :password.
Usage:
i = Password_Field.new(:name => :pass_confirm,
:label => 'Confirm password',
:value => 'oldpass') # Possible, but not recommended
Instance Attribute Summary
Attributes inherited from Form_Field
#data_type, #form, #hidden, #hint, #invalid, #label, #required, #type, #value
Attributes inherited from Element
#attrib, #force_closing_tag, #gui_element_id, #parent, #tag
Instance Method Summary collapse
-
#initialize(params, &block) ⇒ Password_Field
constructor
A new instance of Password_Field.
Methods inherited from Input_Field
Methods inherited from Form_Field
#disable!, #disabled=, #editable!, #element, #enable!, #hidden?, #hide!, #invalid!, #invalid?, #optional!, #readonly!, #readonly=, #readonly?, #readonly_element, #required!, #required?, #show!, #to_hidden_field, #to_s
Methods inherited from Element
#+, #<<, #[], #[]=, #add_class, #aurita_gui_element, #clear_floating, #css_classes, #find_by_dom_id, #get_content, #has_content?, #id, #id=, #inspect, #js_init_code, #length, #method_missing, #recurse, #remove_class, #set_content, #string, #swap, #to_ary, #touch, #touched?, #type=, #untouch
Methods included from Marshal_Helper_Class_Methods
Methods included from Marshal_Helper
Constructor Details
#initialize(params, &block) ⇒ Password_Field
Returns a new instance of Password_Field.
16 17 18 19 |
# File 'lib/aurita-gui/form/password_field.rb', line 16 def initialize(params, &block) params[:type] = :password unless params[:type] super(params) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Aurita::GUI::Element