Interface HeaderDividerRendererProps

HeaderDividers follow the header // TODO - allow negative resizing (before the current) (easy to do I think)

interface HeaderDividerRendererProps {
    bounds: Bounds;
    direction: HeaderDirection;
    disabled?: boolean;
    disabledResize?: boolean;
    headerStyle: GridHeaderStyle;
    headerStyleHover?: GridHeaderStyle;
    headerStyleSelect: GridHeaderStyle;
    headerStyleSelectAll: GridHeaderStyle;
    index: number;
    isHidden?: boolean;
    isNextHidden?: boolean;
    isSelected?: boolean;
    isSelectedAll?: boolean;
    onAutoFit: (() => void);
    onPointerDown: PointerEventHandler<HTMLDivElement>;
    showTouchDivider?: boolean;
    view: GridOverlayView;
}

Hierarchy (view full)

Properties

bounds: Bounds
direction: HeaderDirection
disabled?: boolean

This should disable interaction. This should also provide a visual cue that the divider is disabled.

disabledResize?: boolean

If the divider does not allow resize.

Remarks

We create a faux divider on the left of the first header and we mark it as disabledResize.

headerStyle: GridHeaderStyle
headerStyleHover?: GridHeaderStyle
headerStyleSelect: GridHeaderStyle
headerStyleSelectAll: GridHeaderStyle
index: number
isHidden?: boolean

If the current header is hidden. This allows the divider to shift location

isNextHidden?: boolean

If the next header is hidden. This allows the divider to shift location

isSelected?: boolean

If the header associated with this divider is selected.

isSelectedAll?: boolean

If the header associated with this divider is selected.

onAutoFit: (() => void)

Type declaration

    • (): void
    • Returns void

onPointerDown: PointerEventHandler<HTMLDivElement>

Handle mouse down and all dragging

showTouchDivider?: boolean

If the divider is the last one in view. Useful for touch divider that only show the last one.