Interface HeaderDividerAnchorProps

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

interface HeaderDividerAnchorProps {
    direction: HeaderDirection;
    disabled?: boolean;
    disabledResize?: boolean;
    dividerRenderer?: ((props, refForward?) => ReactNode);
    headerStyle: GridHeaderStyle;
    headerStyleHover?: GridHeaderStyle;
    headerStyleSelect: GridHeaderStyle;
    headerStyleSelectAll: GridHeaderStyle;
    index: number;
    isHidden?: boolean;
    isNextHidden?: boolean;
    isSelected?: boolean;
    isSelectedAll?: boolean;
    onDividerAutoFit?: ((index) => void);
    onDividerMouseDown?: ((index, size) => void);
    onDividerMouseUp?: ((index) => void);
    onDividerResize?: ((index, size, prevSize) => void);
    onDividerResizeEnd?: ((index, size, prevSize) => void);
    onDividerResizeStart?: ((index, prevSize) => void);
    resizeThreshold?: number;
    showTouchDivider?: boolean;
    view: GridOverlayView;
}

Hierarchy (view full)

Properties

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.

dividerRenderer?: ((props, refForward?) => ReactNode)

Type declaration

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.

onDividerAutoFit?: ((index) => void)

Type declaration

    • (index): void
    • Parameters

      • index: number

      Returns void

onDividerMouseDown?: ((index, size) => void)

Called when the mouse is pressed down.

Type declaration

    • (index, size): void
    • Parameters

      • index: number
      • size: number

      Returns void

Returns

onDividerMouseUp?: ((index) => void)

Called when the mouse is released (regardless of resize)

Type declaration

    • (index): void
    • Parameters

      • index: number

      Returns void

Returns

onDividerResize?: ((index, size, prevSize) => void)

Call during resize

Type declaration

    • (index, size, prevSize): void
    • Parameters

      • index: number
      • size: number
      • prevSize: number

        the size of the header on resizeStart (not last resize call)

      Returns void

onDividerResizeEnd?: ((index, size, prevSize) => void)

Called after the mouse has been released but only if the mouse onDividerResizeStart was called

Type declaration

    • (index, size, prevSize): void
    • Parameters

      • index: number
      • size: number
      • prevSize: number

      Returns void

Returns

onDividerResizeStart?: ((index, prevSize) => void)

Called after the mouse has dragged beyond the threshold

Type declaration

    • (index, prevSize): void
    • Parameters

      • index: number
      • prevSize: number

      Returns void

Returns

resizeThreshold?: number

The number of pixels to mouse before resizing starts. If this number is less than 1 then it will be 1.

showTouchDivider?: boolean

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