Module: Bs5::ComponentsHelper
- Included in:
- AccordionComponent, AlertComponent, CarouselComponent, DropdownComponent, ExampleComponent, Toast::HeaderComponent, ToastComponent
- Defined in:
- app/helpers/bs5/components_helper.rb
Constant Summary collapse
- COMPONENTS =
%w[accordion alert badge breadcrumb button_group button_tag button_to button_toolbar carousel close_button dropdown list_group modal nav spinner progress tabs toast toast_container].freeze
Instance Method Summary collapse
Instance Method Details
#bs5_collapse(*args) ⇒ Object
26 27 28 |
# File 'app/helpers/bs5/components_helper.rb', line 26 def bs5_collapse(*args) CollapseService.new(*args).to_hash end |
#bs5_popover(*args) ⇒ Object
22 23 24 |
# File 'app/helpers/bs5/components_helper.rb', line 22 def bs5_popover(*args) PopoverService.new(*args).to_hash end |
#bs5_tooltip(*args) ⇒ Object
18 19 20 |
# File 'app/helpers/bs5/components_helper.rb', line 18 def bs5_tooltip(*args) TooltipService.new(*args).to_hash end |