Skip to content

SettingGroup.onReorderItem method

SettingGroup › onReorderItem

Unofficial

Registers a handler invoked when an item is reordered via the keyboard.

Signature:

onReorderItem(cb: (fromIndex: number, toIndex: number) => void): this

Parameters:

Parameter Type Description
cb (fromIndex: number, toIndex: number) => void Callback receiving the source and destination indices.

Returns: thisThe setting group.