Interface OverlayAction

Base type for the actions "open-overlay" and "toggle-overlay" that share most of their properties

interface OverlayAction {
    destination: Board;
    relativeTo?: Shape;
    position?:
        | "center"
        | "manual"
        | "top-left"
        | "top-right"
        | "top-center"
        | "bottom-left"
        | "bottom-right"
        | "bottom-center";
    manualPositionLocation?: Point;
    closeWhenClickOutside?: boolean;
    addBackgroundOverlay?: boolean;
    animation?: Animation;
}

Hierarchy (view full)

Properties

destination: Board

Overlay board that will be openned.

relativeTo?: Shape

Base shape to which the overlay will be positioned taking constraints into account.

position?:
    | "center"
    | "manual"
    | "top-left"
    | "top-right"
    | "top-center"
    | "bottom-left"
    | "bottom-right"
    | "bottom-center"

Positioning of the overlay.

manualPositionLocation?: Point

For position = 'manual' the location of the overlay.

closeWhenClickOutside?: boolean

When true the overlay will be closed when clicking outside

addBackgroundOverlay?: boolean

When true a background will be added to the overlay.

animation?: Animation

Animation displayed with this interaction.