Class: LabelDrop

Inherits:
Liquid::Simplero::Drop show all
Defined in:
app/drops/label_drop.rb

Overview

The value of a label setting on a section.

A Label setting shows a select box with all labels in your account while you are editing. So if you have a setting like this in your section's schema:

{
  "type": "label",
  "label": "Which simplero label",
  "id": "filter_by"
}

You'll see a select box on the left sidebar while editing your page/landing_page and you can then access the selected value in your liquid template using something like:

{{ section.settings.filter_by.name }}

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#idInteger

Returns:

  • (Integer)

#label_colorString

Returns:

  • (String)

#nameString

Returns:

  • (String)

#text_colorString

Returns:

  • (String)