Class ToggleableModel

A model that can be toggled between different states.

ToggleableModel

Constructors

Properties

baseModel: BlockModel
basemodel: BlockModel

The base model that the toggleable model is based on.

Memberof

ToggleableModel

models: Map<any, any>

The collections of models that can be toggled.

Memberof

ToggleableModel

Methods

  • Creates a new model based on the base model with the specified categories.

    Parameters

    • categories: string[]

      The categories to include in the model.

    • name: string

      The name of the new model.

    Returns BlockModel

    Memberof

    ToggleableModel

  • Sets the base model for the toggleable model.

    Parameters

    Returns void

    Memberof

    ToggleableModel

  • Sets the model for a specific category.

    Parameters

    • category: string

      The category of the model.

    • model: BlockModel

      The model to set.

    Returns void

    Memberof

    ToggleableModel

Generated using TypeDoc