Interface FillHandleOptionsIf

Options of the fill handle (TableOptionsIf.fillHandle): the small square at the bottom right corner of the selected range. Dragging it fills the neighbouring cells – copies values or continues series (1, 2, 3 …; dates; Item 1 → Item 2). Needs a SelectionModel of the type "range".

Example

const selectionModel = new SelectionModel("range", "multi");   // one model – not a new one per call
const tableOptions: TableOptionsIf = {
...new TableOptions(),
getSelectionModel: () => selectionModel,
fillHandle: { direction: "vertical" },
};

Since

1.1.96

Hierarchy

  • FillHandleOptionsIf

Implemented by

Properties

autoScrollMaxSpeedInPx: number

Maximum auto-scroll speed in px per animation frame (default 24).

autoScrollZoneInPx: number

Width in px of the zone at the edges of the body that scrolls automatically (default 40).

direction: "both" | "vertical" | "horizontal"

Allowed directions: "vertical" (down/up), "horizontal" (right/left) or "both" (default).

dragThresholdInPx: number

Distance in px the pointer has to move before a fill starts (default 3).

fillValue?: ((ctx) => unknown)

Type declaration

    • (ctx): unknown
    • Own fill function, called for every filled cell. Return the value – or undefined for the default (ctx.defaultValue).

      Parameters

      Returns unknown

maxCells: number

At most this many cells are filled at once (default 100,000); a bigger fill is refused and announced.