HTML_Progress2 : The Definitive Guide |
Sets the number of cell in the progress bar
This method accept now zero as minimum value for smooth progress meter. That means that a progress bar with zero cell, will render a full bar as HTML_Progress2_Lite do.
With HTML_Progress 1.x you might only defines one custom text label. Now with new multiple label system you can do it at infinite. There is no label number limit (except memory).
Important | |
---|---|
You have to define first each label you will put around the
progress meter by the addLabel() method, before to set its
attributes.
|
While with HTML_Progress 1.x, you could have a script like this:
which prepare to render a custom string on right side of the progress bar.
Now with HTML_Progress2, you will have a modified script like:
The percent info will be render alone at right side of the progress bar (default) and we have added a static text label on top side of the same progress bar.
HTML_Progress2 : The Definitive Guide | v 2.4.0 : April 20, 2007 |