Class: Tramway::Table::Row::PreviewComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Tramway::Table::Row::PreviewComponent
- Defined in:
- app/components/tramway/table/row/preview_component.rb
Overview
Row component for rendering a row in a table
Constant Summary
Constants included from Helpers::ViewsHelper
Helpers::ViewsHelper::FORM_SIZES
Instance Method Summary collapse
Methods included from Helpers::ViewsHelper
#tramway_back_button, #tramway_badge, #tramway_button, #tramway_cell, #tramway_chat, #tramway_container, #tramway_flash, #tramway_form_for, #tramway_header, #tramway_main_container, #tramway_row, #tramway_table, #tramway_title
Methods included from Helpers::ComponentHelper
Methods included from Helpers::DecorateHelper
Instance Method Details
#close_button_classes ⇒ Object
15 16 17 18 19 |
# File 'app/components/tramway/table/row/preview_component.rb', line 15 def theme_classes( classic: 'absolute top-4 right-4 text-gray-500 hover:text-gray-700' ) end |
#preview_classes ⇒ Object
8 9 10 11 12 13 |
# File 'app/components/tramway/table/row/preview_component.rb', line 8 def preview_classes theme_classes( classic: 'fixed hidden md:hidden bottom-0 left-0 right-0 w-screen shadow-lg z-50 bg-gray-900 ' \ 'animate-roll-up h-1/2 pt-4' ) end |