Skip to content

Overview

Component for handling row order editor.

Properties

PropertyAttributeDescriptionTypeDefault
dataStore--Static stores, not expected to change during component lifetimeObservableMap<DSourceState<DataType, DimensionRows>>undefined
dimensionCol--Dimension settings XObservableMap<DimensionSettingsState>undefined
dimensionRow--Dimension settings YObservableMap<DimensionSettingsState>undefined
parent--Parent elementHTMLElementundefined
rowTyperow-type"rgRow" | "rowPinEnd" | "rowPinStart"undefined

Events

EventDescriptionType
rowdragendinitRow drag ended startedCustomEvent<{ rowType: DimensionRows; }>
rowdragmousemoveRow mouse move startedCustomEvent<Cell & { rowType: DimensionRows; }>
rowdragmoveinitRow move startedCustomEvent<PositionItem & { rowType: DimensionRows; }>
rowdragstartinitRow drag startedCustomEvent<{ cell: Cell; text: string; pos: PositionItem; event: MouseEvent; rowType: DimensionRows; model: any; }>
rowdropinitRow dragged, new range ready to be appliedCustomEvent<{ from: number; to: number; rowType: DimensionRows; }>
roworderchangeRow drag ended finished. Time to apply dataCustomEvent<{ from: number; to: number; rowType: DimensionRows; }>

Methods

clearOrder() => Promise<void>

Returns

Type: Promise<void>

dragStart(e: DragStartEvent) => Promise<void>

Parameters

NameTypeDescription
eDragStartEvent

Returns

Type: Promise<void>

endOrder(e: MouseEvent) => Promise<void>

Parameters

NameTypeDescription
eMouseEvent

Returns

Type: Promise<void>

Dependencies

Used by

Graph


Built with ❤️ by Revolist OU

Revogrid is a powerful data grid library made by Revolist OU.