Class: LandingPageEditorFormFieldDrop
- Inherits:
-
FormFieldDrop
- Object
- Liquid::Drop
- Liquid::Simplero::Drop
- FormFieldDrop
- LandingPageEditorFormFieldDrop
- Defined in:
- app/drops/landing_page_editor_form_field_drop.rb
Overview
Represents a form field on the embedded landing page editor This inherits from FormFieldDrop. The methods overridden here are only called from the editor on the admin side.
Instance Method Summary collapse
-
#content ⇒ String
Renders the label of the form field in an editable input.
-
#control ⇒ String
Renders the HTML control (textarea, select tag, etc) of the form field.
-
#control_with_placeholder ⇒ String
Renders the HTML control (textarea, select tag, etc) of the form field with the placeholder that'll be shown when the landing page is rendered to the users.
-
#label ⇒ String
Renders the current label of the form field in an editable input.
Methods inherited from FormFieldDrop
#field_label, #has_placeholder, #has_placeholder?, #required, #required?, #self_labeling?, #show_label, #show_label?, #type
Methods inherited from Liquid::Simplero::Drop
Instance Method Details
#content ⇒ String
Renders the label of the form field in an editable input
#control ⇒ String
Renders the HTML control (textarea, select tag, etc) of the form field
#control_with_placeholder ⇒ String
Renders the HTML control (textarea, select tag, etc) of the form field with the placeholder that'll be shown when the landing page is rendered to the users. The placeholder value in many cases will be editable inline as you are editing the form in admin.
#label ⇒ String
Renders the current label of the form field in an editable input