Class: Navigation::IconPanel

Inherits:
Components::Base
  • Object
show all
Includes:
Phlex::Rails::Helpers::LinkTo
Defined in:
app/components/databasium/navigation/icon_panel.rb

Instance Method Summary collapse

Constructor Details

#initialize(icons_with_text: []) ⇒ IconPanel

element format: { icon: “icon-name”, text: “text”, path: “path”, method: :get | :post | frontend, turbo_frame: “frame_id” }



9
10
11
# File 'app/components/databasium/navigation/icon_panel.rb', line 9

def initialize(icons_with_text: [])
  @icons_with_text = icons_with_text
end

Instance Method Details

#view_template(&block) ⇒ Object



13
14
15
# File 'app/components/databasium/navigation/icon_panel.rb', line 13

def view_template(&block)
  form(&block)
end