View Source PetalComponents.UserDropdownMenu (petal_components v1.9.2)

Summary

Functions

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.

Functions

Link to this function

user_dropdown_menu(assigns)

View Source

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.