mithril-materialized
    Preparing search index...

    Interface SidenavItemAttrs

    interface SidenavItemAttrs {
        _isExpanded?: boolean;
        _position?: "left" | "right";
        active?: boolean;
        className?: string;
        disabled?: boolean;
        divider?: boolean;
        href?: string;
        icon?: IconDefinition;
        onclick?: (e: Event) => void;
        subheader?: boolean;
        submenu?: NavbarSubItemAttrs[];
        submenuMode?: "none" | "checkbox" | "radio";
        text?: string;
    }
    Index

    Properties

    _isExpanded?: boolean
    • Whether the sidenav is expanded (passed from parent)
    _position?: "left" | "right"
    • Position of the sidenav (passed from parent)
    active?: boolean

    Whether this item is active

    className?: string

    Custom class

    disabled?: boolean

    Whether this item is disabled

    divider?: boolean

    Whether this is a divider

    href?: string

    Href for link items

    Icon - material icon name, SVG object, or image object

    onclick?: (e: Event) => void

    Click handler

    subheader?: boolean

    Whether this is a subheader

    submenu?: NavbarSubItemAttrs[]

    Submenu items

    submenuMode?: "none" | "checkbox" | "radio"

    Submenu selection mode - 'checkbox' for multi-select, 'radio' for single-select, 'none' for no indicators

    text?: string

    Text content of the item