Syntro\SilverStripeElementalBootstrapFeatureSection\Elements\FeatureSection
Bootstrap based Feature section
- Author: Matthias Leutenegger <hello@syntro.ch>
Synopsis
class FeatureSection
extends BaseElement
{
- // members
- private static string $icon = 'elemental-icon-features';
- private static string $block_name = 'feature-section';
- private static bool $inline_editable = false;
- private static array $styles = ;
- private static string $table_name = 'ElementFeatureSection';
- private static bool $allow_image_background = true;
- private static array $background_colors = ;
- private static array $text_colors = ;
- private static array $text_colors_by_background = ;
- private static array $db = ;
- private static array $has_many = ;
- // methods
- public array fieldLabels()
- public FieldList getCMSFields()
- public string getSummary()
- protected array provideBlockSchema()
- public string getType()
Hierarchy
Extends
- DNADesign\Elemental\Models\BaseElement
Members
private
- $allow_image_background
—
Syntro\SilverStripeElementalBootstrapFeatureSection\Elements\bool
set to false if image option should not show up - $background_colors
—
array
Available background colors for this Element - $block_name
—
string
This defines the block name in the CSS - $db
- $has_many
- $icon
- $inline_editable — Syntro\SilverStripeElementalBootstrapFeatureSection\Elements\bool
- $styles
- $table_name — string
- $text_colors
- $text_colors_by_background
—
array
Color mapping from background color. This is mainly intended to set a default color on the section-level, ensuring text is readable.
Methods
protected
public
- fieldLabels() — fieldLabels - apply field labels
- getCMSFields()
- getSummary()
- getType() — getType