We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to display a bar for a "priority" column:
The priority can be modified with a dialog.
If I write this code:
<GridColumn TItem="QueueItem" HeaderText="Priority" PropertyName="Priority" > <Tooltip Title="@context.Priority.ToString()" Placement="TooltipPlacement.Left"> <Progress> <ProgressBar Width="context.Priority" Type="ProgressType.Striped" Color="ProgressColor.Secondary" /> </Progress> </Tooltip> </GridColumn>
...on Priority change the tooltip is automatically updated, but Width is ignored (same problem for Color). They remains as before change.
The workaround I found is a little verbose:
<GridColumn TItem="QueueItem" HeaderText="Priority" PropertyName="Priority" > <Tooltip Title="@context.Priority.ToString()" Placement="TooltipPlacement.Left"> <Progress> <ProgressBar Style="@ProgressPriFor(context.Priority)" Type="ProgressType.Striped" Class="@ProgressColFor(context.Priority)" /> </Progress> </Tooltip> </GridColumn> string ProgressPriFor(int pri) => $"width: {pri}%"; string ProgressColFor(int pri) { if (pri < 34) return "bg-secondary"; if (pri < 67) return "bg-warning"; return "bg-success"; }
Is it possible to bind correctly Width and Color props?
(it happens also in modals, if a progress bar is displayed)
The text was updated successfully, but these errors were encountered:
Progress bar grid bind problem #229
cca42db
Changes pushed to master. This will be released in v1.8.3.
Sorry, something went wrong.
gvreddy04
No branches or pull requests
I need to display a bar for a "priority" column:
The priority can be modified with a dialog.
If I write this code:
...on Priority change the tooltip is automatically updated, but Width is ignored (same problem for Color). They remains as before change.
The workaround I found is a little verbose:
Is it possible to bind correctly Width and Color props?
(it happens also in modals, if a progress bar is displayed)
The text was updated successfully, but these errors were encountered: