Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(progress): made setting to 100% optional when set error/warning
When using any of the following behaviors, the progress bar is always set to 100%. - `set error` - `set warning` - `set success` In some cases it might be a desired feature to keep the state instead This PR adds support for another parameter `keepState` to those behavior calls to make this possible. If the parameter is omitted (as in all existing applications) the progressbar is still working as before for backward compatibility. ```javascript //as before: will set to 100% $(.ui.progess).progress('set error'); $(.ui.progess).progress('set error','oups'); //stay at the current percentage state $(.ui.progess).progress('set error','oups',true); $(.ui.progess).progress('set error',null,true); //null, if label should not be changed ```
- Loading branch information