Member Junction
    Preparing search index...

    Configuration for a single toolbar button

    interface ToolbarButton {
        customRenderer?: Type<any>;
        disabled?: boolean;
        handler?: (editor: EditorView) => void | Promise<void>;
        icon: string;
        id: string;
        label?: string;
        position?: "left" | "right";
        tooltip?: string;
        visible?: boolean;
    }
    Index

    Properties

    customRenderer?: Type<any>

    Optional custom component to render instead of default button

    disabled?: boolean

    Whether the button is disabled

    handler?: (editor: EditorView) => void | Promise<void>

    Handler function called when button is clicked

    icon: string

    Font Awesome icon class

    id: string

    Unique identifier for the button

    label?: string

    Optional text label to display alongside icon

    position?: "left" | "right"

    Position within the toolbar

    tooltip?: string

    Tooltip text shown on hover

    visible?: boolean

    Whether the button is visible