Skip to content

CommandSwitchesControllerConstructorParams

Parameters for CommandSwitchesController.

Import:

import type { CommandSwitchesControllerConstructorParams } from '@mnaoumov/obsidian-lib/plugin/command-switches-controller';

Signature:

export interface CommandSwitchesControllerConstructorParams

Properties

PropertyTypeDescription
commandHandlerComponentCommandHandlerComponentThe component that registered the commands the switches list.
defaultShouldAddCommandsToSubmenubooleanWhether the commands are grouped under one submenu entry while the user has not chosen.
pluginSettingsComponentPluginSettingsComponentBase<object>The settings component whose data.json stores the switches.