Macro menu_item

Source
macro_rules! menu_item {
    (
        id: $id:expr,
        label: $label:expr,
        $(icon: $icon:expr,)?
        $(route: $route:expr,)?
        $(action: $action:expr,)?
        $(order: $order:expr,)?
        $(permissions: [$($permission:expr),*],)?
        $(children: [$($child:expr),*],)?
    ) => { ... };
    (@icon) => { ... };
    (@icon $icon:expr) => { ... };
    (@route) => { ... };
    (@route $route:expr) => { ... };
    (@action) => { ... };
    (@action $action:expr) => { ... };
    (@order) => { ... };
    (@order $order:expr) => { ... };
}
Expand description

Create a menu item for a plugin with hierarchical support