Trilium Frontend API
    Preparing search index...

    Interface TouchBarScrubberConstructorOptions

    interface TouchBarScrubberConstructorOptions {
        continuous?: boolean;
        highlight?: (highlightedIndex: number) => void;
        items: ScrubberItem[];
        mode?: "fixed" | "free";
        overlayStyle?: "none" | "background" | "outline";
        select?: (selectedIndex: number) => void;
        selectedStyle?: "none" | "background" | "outline";
        showArrowButtons?: boolean;
    }
    Index

    Properties

    continuous?: boolean

    Defaults to true.

    highlight?: (highlightedIndex: number) => void

    Called when the user taps any item.

    items: ScrubberItem[]

    An array of items to place in this scrubber.

    mode?: "fixed" | "free"

    Can be fixed or free. The default is free.

    overlayStyle?: "none" | "background" | "outline"

    Selected overlay item style. Can be background, outline or none. Defaults to none.

    select?: (selectedIndex: number) => void

    Called when the user taps an item that was not the last tapped item.

    selectedStyle?: "none" | "background" | "outline"

    Selected item style. Can be background, outline or none. Defaults to none.

    showArrowButtons?: boolean

    Whether to show arrow buttons. Defaults to false and is only shown if items is non-empty.