Skip to content

[Designer] ProgressBar can not bind value and max to data #9350

@skfd

Description

@skfd

Problem Description

I want to use ProgressBar to show progress where I know the range and a current state, but I can not bind data to it it seems.

Card JSON

{
    "type": "AdaptiveCard",
    "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.6",
    "body": [
        {
            "type": "TextBlock",
            "text": "Copilot Monthly Quote",
            "wrap": true
        },
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "ProgressBar",
                            "value": "${value}",
                            "max": "${max}"

                        }
                    ],
                    "backgroundImage": {
                        "verticalAlignment": "Center"
                    },
                    "style": "default",
                    "showBorder": true
                },
                {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "25%",
                            "wrap": true
                        }
                    ],
                    "backgroundImage": {
                        "verticalAlignment": "Center",
                        "horizontalAlignment": "Center"
                    }
                }
            ]
        }
    ]
}

Screenshot

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions