Orca Note Plugin API Documentation
    Preparing search index...

    Interface SelectOption

    A single option item for the Select component

    interface SelectOption {
        color?: string;
        icon?: string;
        label?: string;
        onClick?: (e: MouseEvent) => void | Promise<void>;
        pinyin?: string;
        render?: (
            closeMenu: () => void,
            icon?: string,
            color?: string,
            label?: string,
            value?: string,
            selected?: boolean,
            onClick?: (e: MouseEvent) => void | Promise<void>,
        ) => ReactElement<any, string | JSXElementConstructor<any>>;
        renderSelected?: (
            closeMenu: () => void,
            icon?: string,
            color?: string,
            label?: string,
            value?: string,
            onClick?: (e: MouseEvent) => void | Promise<void>,
        ) => ReactElement;
        value?: string;
    }
    Index

    Properties

    color?: string

    Background color for the option label (e.g., "#ff6600")

    icon?: string

    Icon class (e.g., "ti ti-folder") or emoji string

    label?: string

    Display label shown in the dropdown and button

    onClick?: (e: MouseEvent) => void | Promise<void>

    Click handler attached to the selected chip (multi-selection mode only)

    pinyin?: string

    Pinyin representation for Chinese text filtering

    render?: (
        closeMenu: () => void,
        icon?: string,
        color?: string,
        label?: string,
        value?: string,
        selected?: boolean,
        onClick?: (e: MouseEvent) => void | Promise<void>,
    ) => ReactElement<any, string | JSXElementConstructor<any>>

    Custom render function for the option item in the dropdown. Return null to skip this option (useful for non-selectable separators/headings).

    renderSelected?: (
        closeMenu: () => void,
        icon?: string,
        color?: string,
        label?: string,
        value?: string,
        onClick?: (e: MouseEvent) => void | Promise<void>,
    ) => ReactElement

    Custom render function for the selected value chip (multi-selection mode only). When set, this replaces the default coloured-chip display for this option.

    value?: string

    Unique value identifying this option