createBooleanValueAsAttributeStrategy

Type: Function

Sets an attribute based on a boolean value on the context node.

Arguments

  1. attributeName

    (Required)

    Type: String

    The name of the attribute to be set

  2. valueName

    (Required)

    Type: String

    The name of the value to look for in the specification

  3. defaultValue

    (Required)

    Type: Boolean | NULL

    The default value when the value is not present in the specification or null when no attribute should be set

  4. trueValue

    (Required)

    Type: String

    The value to be set on the attribute when the value in the specification is true

  5. falseValue

    (Required)

    Type: String

    The value to be set on the attribute when the value in the specification is false

Returns

Type: Function

Arguments