Trilium Frontend API
    Preparing search index...

    Interface FormToggleProps

    interface FormToggleProps {
        afterName?: ComponentChildren;
        currentValue: boolean;
        disabled?: boolean;
        helpPage?: string;
        id?: string;
        switchOffName?: string;
        switchOffTooltip?: string;
        switchOnName?: string;
        switchOnTooltip?: string;
        onChange(newValue: boolean): void;
    }
    Index

    Properties

    afterName?: ComponentChildren
    currentValue: boolean
    disabled?: boolean
    helpPage?: string
    id?: string

    ID for the input element, useful for accessibility with external labels

    switchOffName?: string

    Label shown when toggle is on. If omitted along with switchOnName, no label is shown.

    switchOffTooltip?: string
    switchOnName?: string

    Label shown when toggle is off. If omitted along with switchOffName, no label is shown.

    switchOnTooltip?: string

    Methods

    • Parameters

      • newValue: boolean

      Returns void