Class: Dill::Field
Overview
A form field.
Class Method Summary collapse
Instance Method Summary collapse
-
#get ⇒ Object
Override this to get the actual value.
-
#set(value) ⇒ Object
Sets the field value.
Methods inherited from Widget
#absent?, action, #classes, #click, #diff, filter, filter?, find_all_in, find_in, #gone?, #has_action?, #id, #initialize, #inspect, #present?, present_in?, #root, selector, #text, #to_cell, #to_s, #value, widget_delegator
Methods included from Widgets::DSL
Methods included from WidgetParts::Container
#has_no_widget?, #has_widget?, #widget, #widgets
Methods included from WidgetParts::Struct
Constructor Details
This class inherits a constructor from Dill::Widget
Class Method Details
.root(*selector) ⇒ Object
4 5 6 |
# File 'lib/dill/widgets/field.rb', line 4 def self.root(*selector) @filter = NodeFilter.new([:field] + selector) end |
Instance Method Details
#get ⇒ Object
Override this to get the actual value.
11 12 13 |
# File 'lib/dill/widgets/field.rb', line 11 def get raise NotImplementedError end |
#set(value) ⇒ Object
Sets the field value.
Override this to set the value.
18 19 20 |
# File 'lib/dill/widgets/field.rb', line 18 def set(value) raise NotImplementedError end |