log2trace-ui - v1.0.0-rc.9
    Preparing search index...

    Interface ViewCommand

    A button or key a view offers.

    interface ViewCommand {
        enabled?: () => boolean;
        id: string;
        keys?: readonly string[];
        label: string;
        readout?: () => string;
        run(): void;
    }
    Index

    Properties

    Methods

    Properties

    enabled?: () => boolean

    Whether the command can currently run; defaults to enabled.

    id: string

    Stable command identifier within the view.

    keys?: readonly string[]

    Keys that trigger it, as KeyboardEvent.key values.

    label: string

    What the button says and a screen reader announces.

    readout?: () => string

    Text to show next to the command, such as the zoom level.

    Methods