Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Interface ContextMenuEntry

    interface ContextMenuEntry {
        classes?: string;
        group?: string;
        icon?: string;
        label: string;
        onClick?: ContextMenuCallback;
        visible?: boolean | ContextMenuCondition;
    }
    Index

    Properties

    classes?: string

    Additional CSS classes to apply to this menu item.

    group?: string

    An identifier for a group this entry belongs to.

    icon?: string

    A string containing a className. A full HTML element may also be provided.

    label: string

    The context menu label. Can be localized.

    The function to call when the menu item is clicked.

    visible?: boolean | ContextMenuCondition

    A function to call or boolean value to determine if this entry appears in the menu.