Method: Celerity::SelectList#value
- Defined in:
- lib/celerity/elements/select_list.rb
#value ⇒ String?
Returns the value of the first selected option in the select list. Returns nil if no option is selected.
128 129 130 131 132 133 |
# File 'lib/celerity/elements/select_list.rb', line 128 def value assert_exists if (option = @object.getSelectedOptions.to_a.first) option.getValueAttribute end end |