Class: LandingPageEditorFormFieldDrop

Inherits:
FormFieldDrop show all
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

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

#dom_id

Instance Method Details

#contentString

Renders the label of the form field in an editable input

Returns:

  • (String)

#controlString

Renders the HTML control (textarea, select tag, etc) of the form field

Returns:

  • (String)

#control_with_placeholderString

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.

Returns:

  • (String)

#labelString

Renders the current label of the form field in an editable input

Returns:

  • (String)