Skip to content

Setting.setRowClick method

Setting › setRowClick

Unofficial

Make the whole setting row invoke a callback when clicked, storing it in Setting.rowClick.

The DOM listener is attached only on the first call, so a later call replaces the handler rather than adding a second one. The stored handler is skipped while the setting is disabled, or when the click has already been default-prevented.

Unlike Setting.setNavigable and Setting.setAction, which are both implemented in terms of it, this returns nothing and so does not chain.

Signature:

setRowClick(callback: () => void): void

Parameters:

ParameterTypeDescription
callback() => voidThe callback to invoke when the setting row is clicked.

Returns: void