Class: Aurita::GUI::Password_Field

Inherits:
Input_Field show all
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

#form, #label, #type, #value

Attributes inherited from Element

#attrib, #content, #parent, #tag, #type

Instance Method Summary collapse

Methods inherited from Input_Field

#element

Methods inherited from Form_Field

#disable!, #editable!, #element, #enable!, #readonly!, #readonly?, #readonly_element, #to_s

Methods inherited from Element

#+, #[], #[]=, #clear_floating, #dom_id, #dom_id=, #each, #empty?, #id, #id=, #length, #method_missing, #string, #to_ary

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