Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "api/command/support/buttons"

Index

Functions

actionableButton

  • actionableButton<T>(buttonSpec: ButtonSpecification, commandHandlerRegistration: CommandRegistration<T> | string, parameters?: ParameterType): Action
  • Create an actionable button invoking the given command

    Type parameters

    • T: ParameterType

    Parameters

    • buttonSpec: ButtonSpecification
    • commandHandlerRegistration: CommandRegistration<T> | string

      command registration or command name

    • Optional parameters: ParameterType

      parameters to the command

    Returns Action

actionableMenu

  • actionableMenu<T>(menuSpec: MenuSpecification, commandHandlerRegistration: CommandRegistration<T> | string, parameterName: string, parameters?: ParameterType): Action
  • Create an actionable menu invoking the given command

    Type parameters

    • T: ParameterType

    Parameters

    • menuSpec: MenuSpecification
    • commandHandlerRegistration: CommandRegistration<T> | string

      command registration or command name

    • parameterName: string

      name of the parameter to bind the menu to

    • Optional parameters: ParameterType

      parameters to the command

    Returns Action

Generated using TypeDoc