Module: Taka::DOM::HTML::TextAreaElement
- Includes:
- FieldSetElement
- Defined in:
- lib/taka/dom/html/text_area_element.rb
Instance Attribute Summary collapse
-
#defaultValue ⇒ Object
Returns the value of attribute defaultValue.
Class Method Summary collapse
Instance Method Summary collapse
- #blur ⇒ Object
- #cols ⇒ Object
- #focus ⇒ Object
- #name ⇒ Object
- #rows ⇒ Object
- #select ⇒ Object
- #tabIndex ⇒ Object
- #type ⇒ Object
- #value ⇒ Object
Methods included from FieldSetElement
Instance Attribute Details
#defaultValue ⇒ Object
Returns the value of attribute defaultValue.
7 8 9 |
# File 'lib/taka/dom/html/text_area_element.rb', line 7 def defaultValue @defaultValue end |
Class Method Details
.extended(textarea) ⇒ Object
10 11 12 |
# File 'lib/taka/dom/html/text_area_element.rb', line 10 def extended textarea textarea.defaultValue ||= textarea.inner_text end |
Instance Method Details
#blur ⇒ Object
35 36 |
# File 'lib/taka/dom/html/text_area_element.rb', line 35 def blur end |
#cols ⇒ Object
15 16 17 |
# File 'lib/taka/dom/html/text_area_element.rb', line 15 def cols (cols = self['cols']) && cols.to_i end |
#focus ⇒ Object
38 39 |
# File 'lib/taka/dom/html/text_area_element.rb', line 38 def focus end |
#name ⇒ Object
23 24 25 |
# File 'lib/taka/dom/html/text_area_element.rb', line 23 def name self['name'] end |
#rows ⇒ Object
19 20 21 |
# File 'lib/taka/dom/html/text_area_element.rb', line 19 def rows (rows = self['rows']) && rows.to_i end |
#select ⇒ Object
41 42 |
# File 'lib/taka/dom/html/text_area_element.rb', line 41 def select end |
#tabIndex ⇒ Object
27 28 29 |
# File 'lib/taka/dom/html/text_area_element.rb', line 27 def tabIndex (self['tabindex'] || 0).to_i end |
#type ⇒ Object
31 32 33 |
# File 'lib/taka/dom/html/text_area_element.rb', line 31 def type node_name end |
#value ⇒ Object
44 45 46 |
# File 'lib/taka/dom/html/text_area_element.rb', line 44 def value inner_text end |