Interface TouchSelectHandleRefProps

interface TouchSelectHandleRefProps {
    anchor: "b" | "tl" | "t" | "l" | "r" | "br";
    background?: string;
    borderStroke?: string;
    borderWidth?: number;
    currentTouchAnchor?: string;
    onTouchSelectEnd?: ((anchor) => void);
    onTouchSelectStart?: ((anchor) => void);
    range: CellRangeCoords;
    ref?: Ref<TouchSelectHandleElement>;
    scrollableElement?: HTMLElement;
    scrollableRoot?: HTMLElement;
    selectionTouchPointerHandler: SelectionPointerHandlerOptions;
    size?: number;
    view: GridOverlayView;
}

Hierarchy (view full)

Properties

anchor: "b" | "tl" | "t" | "l" | "r" | "br"

Possible anchors are. If 'l', 't', 'r', or 'b', then it will center along view the view This will determine not only the position but the event that is fired

background?: string
borderStroke?: string
borderWidth?: number
currentTouchAnchor?: string

Indicate that a touch handling is being used

onTouchSelectEnd?: ((anchor) => void)

Type declaration

    • (anchor): void
    • Parameters

      • anchor: string

      Returns void

onTouchSelectStart?: ((anchor) => void)

Type declaration

    • (anchor): void
    • Parameters

      • anchor: string

      Returns void

scrollableElement?: HTMLElement

If provided then touch control will walk the parent hierarchy to find the absolute scroll position

scrollableRoot?: HTMLElement

Use to add create the portal

Default Value

document.body
selectionTouchPointerHandler: SelectionPointerHandlerOptions
size?: number