Skip to content

progress component: binding order of "max" and "value" should not matter #8

Description

@ducarroz

when declaring a progress component in the serialization, you must bind the max property before you bind the value property.

The issue is that you cannot set a value property greater than the max property per design. Ideally the order of the binding declaration should not matter.

The following will failed show the proper progress value:

"progress": {
    "prototype": "matte/ui/progress.reel",
    "properties": {
        "element": {
            "#": "progress"
        },
        "max": 0,
        "value": 0
    },
    "bindings": {
        "value": {
            "<-": "@owner.value"
        },
        "max": {
            "<-": "@owner.max"
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions