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:

ParameterTypeDescription
cb(fromIndex: number, toIndex: number) => voidCallback receiving the source and destination indices.

Returns: thisThe setting group.