Class: UiComponents::DaisyUi::DataDisplay::StatComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- UiComponents::DaisyUi::DataDisplay::StatComponent
- Defined in:
- app/components/ui_components/daisy_ui/data_display/stat_component.rb
Constant Summary collapse
- CSS_CLASSES_DEFAULT =
%w[stats shadow].freeze
- CSS_CLASSES_VARIANTS =
%w[stats-horizontal stats-vertical].freeze
- CSS_CLASSES =
( CSS_CLASSES_DEFAULT + CSS_CLASSES_VARIANTS + Stat::ItemComponent::CSS_CLASSES ).freeze
Constants inherited from BaseComponent
BaseComponent::ALIGNS, BaseComponent::AXES, BaseComponent::COLORS, BaseComponent::KINDS, BaseComponent::SIZES
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
-
#initialize(vertical: false, **args) ⇒ StatComponent
constructor
A new instance of StatComponent.
Methods inherited from BaseComponent
Constructor Details
#initialize(vertical: false, **args) ⇒ StatComponent
25 26 27 28 29 30 31 32 |
# File 'app/components/ui_components/daisy_ui/data_display/stat_component.rb', line 25 def initialize( vertical: false, **args ) @vertical = vertical super(**args) end |