hammerspoon2-docs
    Preparing search index...

    Interface HSChooserChoice

    A row of a chooser

    interface HSChooserChoice {
        contextMenu?: boolean;
        image?: HSImage;
        subText?: string;
        text: string;
        valid?: boolean;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any

      Any other fields, which are passed back to your callbacks unchanged

    Index
    contextMenu?: boolean

    false shows no contextMenu for the row

    image?: HSImage

    An icon shown at the left of the row

    subText?: string

    Smaller text shown under text, also matched against the query if searchSubText is true

    text: string

    The row's main text, which the query is matched against

    valid?: boolean

    false makes choosing the row call onInvalid instead of onSelect. Defaults to true