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:

Parameter Type Description
callback () => void The callback to invoke when the setting is clicked.

Returns: thisThe setting instance, for chaining.