Class: SectionDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- SectionDrop
- Defined in:
- app/drops/section_drop.rb
Overview
Represents a section of content inside a PageDrop. Each SectionDrop represents a “Section” in the page editor.
Instance Attribute Summary collapse
-
#id ⇒ Integer
readonly
Returns this SectionDrop's id.
-
#settings ⇒ ThemeSettingsDrop
readonly
Returns a ThemeSettingsDrop representing this SectionDrop's settings.
- #type ⇒ String readonly
Instance Method Summary collapse
-
#additional_section_classes ⇒ String
Returns additional HTML classes that this section should have.
-
#blocks ⇒ Array<SectionBlockDrop>
Returns the SectionBlockDrops contained within this SectionDrop.
-
#blocks_count ⇒ Integer
Returns the number of SectionBlockDrops within this SectionDrop.
-
#setting_attrs(id) ⇒ Hash{String->Object
Returns a Hash of data attributes for the page editor to use.
- #title ⇒ String deprecated Deprecated.
Instance Attribute Details
#id ⇒ Integer (readonly)
Returns this SectionDrop's id. This will be unique within a PageDrop, but different PageDrops can reuse IDs.
#settings ⇒ ThemeSettingsDrop (readonly)
Returns a ThemeSettingsDrop representing this SectionDrop's settings.
#type ⇒ String (readonly)
Instance Method Details
#additional_section_classes ⇒ String
Returns additional HTML classes that this section should have.
#blocks ⇒ Array<SectionBlockDrop>
Returns the SectionBlockDrops contained within this SectionDrop. Each SectionBlockDrop represents an entry under “Content” in the page editor.
#blocks_count ⇒ Integer
Returns the number of SectionBlockDrops within this SectionDrop.
#setting_attrs(id) ⇒ Hash{String->Object
Returns a Hash of data attributes for the page editor to use. This should not be used directly; instead Liquid::Simplero::Filters#setting_attrs should be used.