Skip to content

Setting.setAction method

Setting › setAction

Unofficial

Makes the whole setting row act as a button, invoking the callback when clicked.

Signature:

setAction(callback: () => void): this

Parameters:

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

Returns: thisThe setting instance, for chaining.