Class: FormFieldDrop
- Inherits:
-
Liquid::Simplero::Drop
- Object
- Liquid::Drop
- Liquid::Simplero::Drop
- FormFieldDrop
- Defined in:
- app/drops/form_field_drop.rb
Overview
Represents a form field. Can be accessed as a setting under ThemeSettingsDrop.
Direct Known Subclasses
Instance Method Summary collapse
-
#control ⇒ String
HTML for the field.
-
#control_with_placeholder ⇒ String
HTML for the field with an HTML placeholder attribute.
-
#field_label ⇒ String
Same as
label
, but adds an indicator for required fields. -
#has_placeholder ⇒ Boolean
Returns true if the field has an HTML placeholder.
-
#has_placeholder? ⇒ Boolean
Returns true if the field has an HTML placeholder.
- #label ⇒ String
- #required ⇒ Boolean
- #required? ⇒ Boolean
-
#self_labeling? ⇒ Boolean
Returns true if the field type does not need a separate HTML label (e.g. a checkbox).
-
#show_label ⇒ Boolean
Returns true if an HTML label should be shown.
-
#show_label? ⇒ Boolean
Returns true if an HTML label should be shown.
-
#type ⇒ String
The type of field (text, checkbox, etc.).
Methods inherited from Liquid::Simplero::Drop
Instance Method Details
#control ⇒ String
HTML for the field.
#control_with_placeholder ⇒ String
HTML for the field with an HTML placeholder attribute.
#field_label ⇒ String
Same as label
, but adds an indicator for required fields.
#has_placeholder ⇒ Boolean
Returns true if the field has an HTML placeholder.
#has_placeholder? ⇒ Boolean
Returns true if the field has an HTML placeholder.
#label ⇒ String
#required ⇒ Boolean
#required? ⇒ Boolean
#self_labeling? ⇒ Boolean
Returns true if the field type does not need a separate HTML label (e.g. a checkbox)
#show_label ⇒ Boolean
Returns true if an HTML label should be shown.
#show_label? ⇒ Boolean
Returns true if an HTML label should be shown.
#type ⇒ String
The type of field (text, checkbox, etc.)