JustGage for Yii is a widget for gauge Just Gage javascript library http://www.justgage.com.
Requirements ¶
Yii 1.1 or above
Usage ¶
Uncompress in 'protected/extensions'.
To use this widget, you may insert the following code in a view:
$this->Widget('ext.justgage.JustGage', array(
'options'=>array(
'value' => 67,
'min' => 0,
'max' => 100,
'title' => "Visitors",
),
'htmlOptions'=> array(
'style'=>'width:200px; height:160px; margin: 0 auto;',
),
));
You can also use a JSON string:
$this->Widget('ext.justgage.JustGage', array(
'options'=>'{
"value": 67,
"min": 0,
"max": 100,
"title": "Visitors"
}',
'htmlOptions'=> array(
'style'=>'width:200px; height:160px; margin: 0 auto;',
),
));
Resources ¶
Last version of this package contents are in GitHub JustGage-Yii
Good!
Work fine!
Its a good jq pluguin
Thx
Thx for this ext
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.