module Lookbook
def update_panel(name, opts)
(**opts)
-
:locals
(Hash
) -- A hash of local variables that will be passed to the panel when it is rendered -
:copy
(String
) -- If present, the panel will display a copy button that copies the value of this property to the clipboard when clicked -
:disabled
(Boolean
) -- Disabled tabs are still accessible but are greyed out in the UI -
:hotkey
(String
) -- [Keyboard shortcut](https://alpinejs.dev/directives/on#keyboard-events) used to switch to the panel -
:label
(String
) -- The text to be displayed in the panel tab
Parameters:
-
opts
(Hash
) -- Set of panel options -
name
(Symbol, String
) -- Name of target panel
Other tags:
- Example: :ruby -
def update_panel(name, opts) Engine.panels.update_panel(name, opts) end