Class: UiComponents::DaisyUi::DataDisplay::TableComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- UiComponents::DaisyUi::DataDisplay::TableComponent
- Defined in:
- app/components/ui_components/daisy_ui/data_display/table_component.rb
Constant Summary collapse
- SIZES =
%w[xs sm md lg xl].freeze
- CSS_CLASSES_DEFAULT =
%w[table].freeze
- CSS_CLASSES_VARIANTS =
( %w[table-zebra table-pin-rows table-pin-cols] + SIZES.map { |key| "table-#{key}" } ).freeze
- CSS_CLASSES =
(CSS_CLASSES_DEFAULT + CSS_CLASSES_VARIANTS).freeze
Constants inherited from BaseComponent
BaseComponent::ALIGNS, BaseComponent::AXES, BaseComponent::COLORS, BaseComponent::KINDS
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
-
#initialize(zebra: false, size: nil, pinned_rows: false, pinned_cols: false, **args) ⇒ TableComponent
constructor
A new instance of TableComponent.
Methods inherited from BaseComponent
Constructor Details
#initialize(zebra: false, size: nil, pinned_rows: false, pinned_cols: false, **args) ⇒ TableComponent
Returns a new instance of TableComponent.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'app/components/ui_components/daisy_ui/data_display/table_component.rb', line 26 def initialize( zebra: false, size: nil, pinned_rows: false, pinned_cols: false, **args ) @zebra = zebra @size = size @pinned_rows = pinned_rows @pinned_cols = pinned_cols super(**args) end |