Class: Alchemy::Admin::TimezoneSelect
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Alchemy::Admin::TimezoneSelect
- Defined in:
- app/components/alchemy/admin/timezone_select.rb
Overview
Renders a timezone select dropdown triggered by an icon button.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/components/alchemy/admin/timezone_select.rb', line 5 def call tag.div(class: "alchemy-timezone-select") do content_tag("sl-tooltip", content: current_timezone, placement: "left") do content_tag("sl-dropdown", distance: 5) do safe_join([, popover_content]) end end end end |