Trilium Frontend API
    Preparing search index...

    Interface FormDropdownList<T>

    Construct a type with the properties of T except for those in type K.

    interface FormDropdownList<T> {
        buttonClassName?: string;
        buttonProps?: Partial<HTMLAttributes<HTMLButtonElement> & DataAttributes>;
        className?: Signalish<string>;
        currentValue: string;
        descriptionProperty?: keyof T;
        disabled?: boolean;
        dropdownContainerClassName?: string;
        dropdownContainerRef?: MutableRef<HTMLDivElement>;
        dropdownContainerStyle?: CSSProperties;
        dropdownOptions?: Partial<Options>;
        dropdownRef?: MutableRef<Dropdown>;
        forceShown?: boolean;
        hideToggleArrow?: boolean;
        iconAction?: boolean;
        id?: Signalish<string>;
        isStatic?: boolean;
        keyProperty: keyof T;
        noDropdownListStyle?: boolean;
        noSelectButtonStyle?: boolean;
        onHidden?: () => void;
        onShown?: () => void;
        text?: ComponentChildren;
        title?: string;
        titleOptions?: Partial<Options>;
        titlePosition?: "bottom" | "left" | "right" | "top";
        titleProperty: keyof T;
        values: T[];
        onChange(newValue: string): void;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Properties

    buttonClassName?: string
    className?: Signalish<string>
    currentValue: string
    descriptionProperty?: keyof T
    disabled?: boolean
    dropdownContainerClassName?: string
    dropdownContainerRef?: MutableRef<HTMLDivElement>
    dropdownContainerStyle?: CSSProperties
    dropdownOptions?: Partial<Options>
    dropdownRef?: MutableRef<Dropdown>
    forceShown?: boolean
    hideToggleArrow?: boolean
    iconAction?: boolean

    If set to true, then the dropdown button will be considered an icon action (without normal border and sized for icons only).

    id?: Signalish<string>
    isStatic?: boolean
    keyProperty: keyof T
    noDropdownListStyle?: boolean
    noSelectButtonStyle?: boolean
    onHidden?: () => void
    onShown?: () => void
    title?: string
    titleOptions?: Partial<Options>
    titlePosition?: "bottom" | "left" | "right" | "top"
    titleProperty: keyof T
    values: T[]

    Methods

    • Parameters

      • newValue: string

      Returns void