Class: Presentation::FieldSearch::Field
- Inherits:
-
Object
- Object
- Presentation::FieldSearch::Field
- Includes:
- Presenting::Configurable
- Defined in:
- lib/presentation/field_search.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
the display name of the field.
-
#options ⇒ Object
extra options for the field.
-
#param ⇒ Object
the parameter name of the field.
-
#type ⇒ Object
the type of search interface for this field.
Method Summary
Methods included from Presenting::Configurable
Instance Attribute Details
#name ⇒ Object
the display name of the field.
37 38 39 |
# File 'lib/presentation/field_search.rb', line 37 def name @name end |
#options ⇒ Object
extra options for the field.
61 62 63 |
# File 'lib/presentation/field_search.rb', line 61 def @options ||= {} end |
#param ⇒ Object
the parameter name of the field. note that this is not necessarily the name of a database column or record attribute. it simply needs to be recognized as a “field” by the controller logic.
44 45 46 |
# File 'lib/presentation/field_search.rb', line 44 def param @param end |
#type ⇒ Object
the type of search interface for this field. supported options:
-
:text (default)
-
:checkbox
-
:time [planned]
-
:list [planned]
55 56 57 |
# File 'lib/presentation/field_search.rb', line 55 def type @type ||= :text end |