Class: Dill::Form
- Inherits:
-
FieldGroup
- Object
- Widget
- FieldGroup
- Dill::Form
- Defined in:
- lib/dill/widgets/form.rb
Instance Method Summary collapse
-
#submit_with(attributes) ⇒ Object
Submit form with
attributes. - #to_table ⇒ Object
Methods inherited from FieldGroup
check_box, default_locator, field, field_names, #fields, select, #set, text_field
Methods inherited from Widget
#absent?, action, #click, #diff, find_in, #gone?, #has_action?, #initialize, #inspect, #present?, present_in?, root, #root, selector, #text, #to_cell, #to_s, #value, widget, widget_delegator
Methods included from WidgetParts::Container
#has_no_widget?, #has_widget?, #widget
Methods included from WidgetParts::Struct
Constructor Details
This class inherits a constructor from Dill::Widget
Instance Method Details
#submit_with(attributes) ⇒ Object
Submit form with attributes.
10 11 12 13 |
# File 'lib/dill/widgets/form.rb', line 10 def submit_with(attributes) set attributes submit end |
#to_table ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/dill/widgets/form.rb', line 15 def to_table info = self. class. field_names. each_with_object({}) { |e, a| a[e.to_s] = (e).to_cell } [info] end |