No description, website, or topics provided.
JavaScript PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
js
JustGage.php
LICENSE
README.md

README.md

justgage-yii

About

JustGage for Yii is a widget for gauge javascript library JustGage http://www.justgage.com

Installation

Uncompress in 'protected/extensions'

Usage

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;',
        ),
  ));