The defaults of RowDragOptionsIf.

Example

const options = RowDragOptions.create({ managed: false });
options.autoScrollZoneInPx; // 40

Since

1.1.95

Hierarchy

  • RowDragOptions

Implements

Constructors

Properties

autoScrollMaxSpeedInPx: number = 24

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

autoScrollZoneInPx: number = 40

Height in px of the zone at the top and bottom edge of the body that scrolls automatically (default 40).

dragThresholdInPx: number = 4

Distance in px the pointer has to move before a drag starts (default 4) – below it is a click on the handle.

ghostText?: ((rows) => string) = undefined

Type declaration

    • (rows): string
    • Parameters

      • rows: any[]

      Returns string

managed: boolean = true

true (default): the table moves the rows itself (AreaModelIf.moveRows) – only while the table is neither sorted (a column with sort state asc/desc) nor filtered. false: the table only reports the drag (onRowDragStart/Move/End), the app moves the rows (e.g. after the server confirmed), always allowed.

multiRow: boolean = true

true (default): grabbing a selected row drags all rows with a selection (their order stays).

treeDropInside: boolean = true

true (default): tree – dropping on the middle of a row makes the rows its children.

Methods