Syntro\SilverStripeElementalBootstrapAlertSection\Elements\AlertSection
Bootstrap based alert section
- Author: Matthias Leutenegger <hello@syntro.ch>
Synopsis
class AlertSection
extends BaseElement
{
- // members
- private static string $block_name = 'alert-section';
- private static bool $inline_editable = false;
- private static string $icon = 'elemental-icon-alert';
- private static string $table_name = 'ElementAlertSection';
- private static string $controller_template = 'AlertSectionHolder';
- private static bool $use_fa_icons = true;
- private static bool $allow_image_background = false;
- private static boolean $add_default_background_color = false;
- private static array $background_colors = ;
- private static array $text_colors_by_background = ;
- private static array $link_colors_by_text = ;
- private static array $db = ;
- private static array $defaults = ;
- private static array $many_many = ;
- private static array $many_many_extraFields = ;
- // methods
- public FieldList getCMSFields()
- public bool useIcons()
- public string getSummary()
- protected array provideBlockSchema()
- public string getType()
Hierarchy
Extends
- DNADesign\Elemental\Models\BaseElement
Members
private
- $add_default_background_color
- $allow_image_background
—
Syntro\SilverStripeElementalBootstrapAlertSection\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 - $controller_template — string
- $db
- $defaults
- $icon — string
- $inline_editable — Syntro\SilverStripeElementalBootstrapAlertSection\Elements\bool
- $link_colors_by_text
- $many_many
- $many_many_extraFields
- $table_name — string
- $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. - $use_fa_icons
—
Syntro\SilverStripeElementalBootstrapAlertSection\Elements\bool
if set to false, no Icons will be displayed
Methods
protected
public
- getCMSFields()
- getSummary()
- getType()
- useIcons() — useIcons - simple getter for icon config