Class: Alchemy::Admin::TimezoneSelect

Inherits:
ViewComponent::Base
  • Object
show all
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

#callObject



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
    ("sl-tooltip", content: current_timezone, placement: "left") do
      ("sl-dropdown", distance: 5) do
        safe_join([trigger_button, popover_content])
      end
    end
  end
end