@antadesign/anta
    Preparing search index...

    Interface SelectedSubmenu<V>Unreviewed

    A submenu with its descendants annotated and a rolled-up selectionState. Returned by optionsWithSelection.

    interface SelectedSubmenu<V extends OptionValue = string> {
        label: string;
        icon?: keyof IconShapes;
        disabled?: boolean;
        submenu: SelectedItem<V>[];
        selectionState: SelectionState;
    }

    Type Parameters

    Hierarchy

    Index
    label: string

    The parent row's label — and the group heading when filtering flattens it.

    icon?: keyof IconShapes

    Leading icon on the parent row.

    disabled?: boolean

    Disable the whole branch (cascades to all descendants).

    submenu: SelectedItem<V>[]
    selectionState: SelectionState