ZoonkWeb.CommandPaletteConfig (Zoonk v0.1.0-dev)

View Source

Configuration for command palette navigation items.

Centralizes all static menu items for the command palette component, including navigation links, user account actions, settings, and support options.

Summary

Functions

Returns all command palette items as a flat list for search operations.

Returns the navigation items for the command palette.

Returns the settings items for the command palette.

Returns the support items for the command palette.

Returns the user account items for the command palette.

Functions

all_items()

Returns all command palette items as a flat list for search operations.

Examples

all_items()
# => [%{icon: "tabler-home", label: "Home page", navigate: "/"}, ...]

settings_items()

Returns the settings items for the command palette.

Examples

settings_items()
# => [
#   %{icon: "tabler-language", label: "Change app language", navigate: "/language"},
#   ...
# ]

support_items()

Returns the support items for the command palette.

Examples

support_items()
# => [
#   %{icon: "tabler-message-circle", label: "Send feedback", navigate: "/feedback"},
#   ...
# ]

user_items()

Returns the user account items for the command palette.

Examples

user_items()
# => [
#   %{icon: "tabler-layout-grid", label: "My courses", navigate: "/my-courses"},
#   ...
# ]