Hello! You can do that using JS https://www.google.com.ua/search?q=js...
Tiggzi uses jqueryui by default, that's why after you added jqueryui it stops working.
You have to use just progressbar from jqueryui. Here is the CSS code
code.ui-widget-content { border: 1px solid #aaaaaa/{borderColorContent}/ background: #ffffff/{bgColorContent}/ url(images/ui-bg_flat_75_ffffff_40x100.png)/{bgImgUrlContent}/ 50%/{bgContentXPos}/ 50%/{bgContentYPos}/ repeat-x/{bgContentRepeat}/ color: #222222/{fcContent}/ }
.ui-widget-header { border: 1px solid #aaaaaa/{borderColorHeader}/ background: #cccccc/{bgColorHeader}/ url(images/ui-bg_highlight-soft_75_cccccc_1x100.png)/{bgImgUrlHeader}/ 50%/{bgHeaderXPos}/ 50%/{bgHeaderYPos}/ repeat-x/{bgHeaderRepeat}/ color: #222222/{fcHeader}/ font-weight: bold; }
.ui-progressbar { height:2em; text-align: left; overflow: hidden !important; }
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
/code
Here is the JS code
code(function( $, undefined ) {
$.widget( "ui.progressbar", {
version: "1.9.0",
options: {
value: 0,
max: 100
},
min: 0,
create: function() {
this.element
.addClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
.attr({
role: "progressbar",
"aria-valuemin": this.min,
"aria-valuemax": this.options.max,
"aria-valuenow": this.value()
});
this.valueDiv = $( "<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>" )
.appendTo( this.element );
this.oldValue = this.value();
this.refreshValue();
},
_destroy: function() {
this.element
.removeClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
.removeAttr( "role" )
.removeAttr( "aria-valuemin" )
.removeAttr( "aria-valuemax" )
.removeAttr( "aria-valuenow" );
this.valueDiv.remove();
},
value: function( newValue ) {
if ( newValue === undefined ) {
return this._value();
}
this._setOption( "value", newValue );
return this;
},
setOption: function( key, value ) {
if ( key === "value" ) {
this.options.value = value;
this.refreshValue();
if ( this.value() === this.options.max ) {
this.trigger( "complete" );
}
}
this._super( key, value );
},
_value: function() {
var val = this.options.value;
// normalize invalid value
if ( typeof val !== "number" ) {
val = 0;
}
return Math.min( this.options.max, Math.max( this.min, val ) );
},
percentage: function() {
return 100 * this.value() / this.options.max;
},
refreshValue: function() {
var value = this.value(),
percentage = this.percentage();
if ( this.oldValue !== value ) {
this.oldValue = value;
this._trigger( "change" );
}
this.valueDiv
.toggle( value > this.min )
.toggleClass( "ui-corner-right", value === this.options.max )
.width( percentage.toFixed(0) + "%" );
this.element.attr( "aria-valuenow", value );
}
});
})( jQuery );/code
To turn it on use Panel component with Type=div.
Run next JS (you can put it on page Load - it depends on when you want to show progress bar)
codeTiggzi( "panelName" ).progressbar({
value: 0
});/code
panelName - name of your Panel component where progressbar will be shown
to change it's position you can use code
Tiggzi("panelName").progressbar( "value", 32 );
where 32 - new progressbar position