Skip to content

SettingGroup.onDeleteItem method

SettingGroup › onDeleteItem

Unofficial

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

Signature:

onDeleteItem(cb: (index: number) => void): this

Parameters:

Parameter Type Description
cb (index: number) => void Callback receiving the deleted item's index.

Returns: thisThe setting group.