@nospamproxy/core
    Preparing search index...

    The on-flag binding command.

    This command can be used as follows:

    <some-element boolean-prop.on-flag.some-flag="sourceProperty"></some-element>
    

    This will create a two-way binding between the booleanProp property of some-element and the sourceProperty in the binding context. The some-flag is used to specify the flag that should be checked for in the source property. If the sourceProperty (a comma-separated list of flags, for example [Flags] enum from OData) contains the someFlag flag, the booleanProp will be set to true, otherwise it will be set to false.

    The someFlag flag can be toggled by changing the booleanProp property. That is, if the booleanProp is set to true, the someFlag will be added to the sourceProperty, otherwise it will be removed.

    Note that the flags value are converted to PascalCase, we want to primarily work with PascalCased enums from OData.

    Implements

    • BindingCommandInstance
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    ignoreAttr: boolean = false

    Characteristics of a binding command.

    • false: The normal process (check custom attribute -> check bindable -> command.build()) should take place.
    • true: The binding command wants to take over the processing of an attribute. The template compiler keeps the attribute as is in compilation, instead of executing the normal process.

    Methods

    • Parameters

      • info: ICommandBuildInfo
      • parser: IExpressionParser
      • attrMapper: IAttrMapper

      Returns IInstruction