turbodombuilder - v0.9.5
    Preparing search index...

    Type Alias TurboSelectProperties<ValueType, SecondaryValueType, EntryType>

    type TurboSelectProperties<
        ValueType = string,
        SecondaryValueType = string,
        EntryType extends object = HTMLElement,
    > = {
        selectedEntryClasses?: string | string[];
        entries?: HTMLCollection | NodeList | EntryType[];
        values?: (ValueType | EntryType)[];
        selectedValues?: ValueType[];
        getValue?: (entry: EntryType) => ValueType;
        getSecondaryValue?: (entry: EntryType) => SecondaryValueType;
        createEntry?: (value: ValueType) => EntryType;
        onEntryAdded?: (entry: EntryType, index: number) => void;
        multiSelection?: boolean;
        forceSelection?: boolean;
        inputName?: string;
        parent?: Element;
        onSelect?: (b: boolean, entry: EntryType, index: number) => void;
        onEnabled?: (b: boolean, entry: EntryType, index: number) => void;
    }

    Type Parameters

    • ValueType = string
    • SecondaryValueType = string
    • EntryType extends object = HTMLElement
    Index

    Properties

    selectedEntryClasses?: string | string[]
    values?: (ValueType | EntryType)[]
    selectedValues?: ValueType[]
    getValue?: (entry: EntryType) => ValueType
    getSecondaryValue?: (entry: EntryType) => SecondaryValueType
    createEntry?: (value: ValueType) => EntryType
    onEntryAdded?: (entry: EntryType, index: number) => void
    multiSelection?: boolean
    forceSelection?: boolean
    inputName?: string
    parent?: Element
    onSelect?: (b: boolean, entry: EntryType, index: number) => void
    onEnabled?: (b: boolean, entry: EntryType, index: number) => void