Skip to content

PluginSettingsTabBase.attachCommandSwitches method

PluginSettingsTabBase › attachCommandSwitches

Attaches the user's command switches: the tab gains a Commands 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): CommandSwitches

Parameters:

ParameterTypeDescription
paramsPluginSettingsTabBaseAttachCommandSwitchesParamsThe parameters.

Returns: CommandSwitches — The switches.