justgage-yii Widget for gauge graphics javascript library JustGage

  1. Requirements
  2. Usage
  3. Resources

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

1 0
3 followers
165 downloads
Yii Version: 1.1
License: MIT
Category: User Interface
Developed by: christian
Created on: Aug 11, 2014
Last updated: 3 years ago

Downloads

show all

Related Extensions