petal_components
v4.11.3
Search documentation of petal_components
Default
Default
In-browser search
Settings
PetalComponents.
UserDropdownMenu
(petal_components v4.11.3)
Copy Markdown
View Source
Summary
Functions
user_dropdown_menu(assigns)
Functions
user_dropdown_menu(assigns)
Attributes
user_menu_items
(
:list
) - list of maps with keys :path, :icon (atom), :label, :method (atom - optional).
current_user_name
(
:string
) - the current signed in user's name.
avatar_src
(
:string
) - the current signed in user's avatar image src. Defaults to
nil
.
show_chevron
(
:boolean
) - hide for the chevron-less avatar trigger - the leaner app-shell look. Defaults to
true
.