Class: Essence::FlashComponent

Inherits:
NotificationComponent show all
Defined in:
app/components/essence/flash_component.rb

Defined Under Namespace

Classes: ContainerComponent

Constant Summary collapse

VARIANT_MAPPINGS =
{
  :success => 'flash-success',
  :notice => 'flash-notice',
  DEFAULT_VARIANT => 'flash-info',
  :warning => 'flash-warning',
  :danger => 'flash-danger',
  :alert => 'flash-danger'
}.freeze

Constants inherited from NotificationComponent

NotificationComponent::DEFAULT_VARIANT, NotificationComponent::ICON_MAPPINGS, NotificationComponent::VARIANT_OPTIONS

Constants included from FetchOrFallbackHelper

Essence::FetchOrFallbackHelper::InvalidValueError

Instance Attribute Summary

Attributes inherited from NotificationComponent

#html_options, #icon

Method Summary

Methods inherited from NotificationComponent

#initialize

Methods inherited from ApplicationComponent

assets_path, images_directory

Methods included from Utils

#get_directory_file_names

Methods included from FetchOrFallbackHelper

#fetch_or_fallback, #fetch_or_fallback_boolean, #integer_or_fallback

Constructor Details

This class inherits a constructor from Essence::NotificationComponent