Skip to content

reorderBulletPoints

reorderBulletPoints(data, activeId, overId): ItemWithId[] | null

Defined in: components/BulletPoints/bulletPointsDnd.ts:16

Computes the reordered bullet points array when a drag operation finishes over a different target item or returns null when no reordering should occur.

Parameter Type
data readonly _ReadonlyObjectDeep<ItemWithId>[]
activeId UniqueIdentifier
overId UniqueIdentifier | null | undefined

ItemWithId[] | null