Setting.setAction method
Setting › setAction
Unofficial
Makes the whole setting row act as a button, invoking the callback when clicked.Signature:
setAction(callback: () => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| callback | () => void | The callback to invoke when the setting is clicked. |
Returns: this — The setting instance, for chaining.