Project

General

Profile

Support #7740

setValueStyleClass has no visual effect

Added by Mahmudul Hasan 25 days ago.

Status:
New
Priority:
Immediate
Assignee:
Target version:
-
Start date:
09/29/2020
Due date:
% Done:

0%

Estimated time:

Description

Trying to change progress bar progress color based on progress value.

But i see it has no immediate effect. It requires page refresh.

Is it supposed to be like this or I am doing something wrong?

Please see below :

auto style = VELOCITY_MODEL.Overrange() ? "progress bg-danger-Polytec" : "progress bg-info-polytec";

m_velocityProgressBar->setValueStyleClass(style);

Wt::WApplication::instance()->triggerUpdate();

No data to display

Also available in: Atom PDF