Last updated
Was this helpful?
Was this helpful?
component {
property name="progressBarGeneric" inject="progressBarGeneric";
function run() {
// Draw initial progress bar
progressBarGeneric.update( percent=0 );
// Update as we progress
sleep( 1000 );
progressBarGeneric.update( percent=25, currentCount=250, totalCount=1000 );
sleep( 1000 );
progressBarGeneric.update( percent=50, currentCount=500, totalCount=1000 );
sleep( 1000 );
progressBarGeneric.update( percent=75, currentCount=750, totalCount=1000 );
sleep( 1000 );
// Progress bar automaticaly hides once it reaches 100%
progressBarGeneric.update( percent=100, currentCount=1000, totalCount=1000 );
}
}progressBarGeneric.clear();progressBarGeneric.update( percent=27 );