PluginSettingsTabBase.attachCommandSwitches method
PluginSettingsTabBase › attachCommandSwitches
Attaches the user's command switches: the tab gains aCommands and menus section, stored in the plugin's data.json, and the returned view is what the command handlers read at menu time.PluginSettingsTabComponent calls it on load when its shouldRegisterCommandSwitches option is on; nothing else should.Signature:
attachCommandSwitches(params: PluginSettingsTabBaseAttachCommandSwitchesParams): CommandSwitchesParameters:
| Parameter | Type | Description |
|---|---|---|
| params | PluginSettingsTabBaseAttachCommandSwitchesParams | The parameters. |
Returns: CommandSwitches — The switches.