softcommerce/yii2-knob

jQuery Knob for Yii2.

Installs: 6 759

Dependents: 1

Suggesters: 0

Stars: 2

Watchers: 2

Forks: 4

Open Issues: 0

Language:JavaScript

Type:yii2-extension

0.1 2014-06-11 11:36 UTC

README

!!! Not maintained anymore !!!

Yii2 widget for jQuery Knob plugin (http://anthonyterrien.com/knob/)

Usage:

echo softcommerce\knob\Knob::widget([
        'name' => 'animated_knob_with_icon',
        'value' => 62,
        'icon' => '<span class="glyphicon glyphicon-flash"></span>',
        'options' => [
            'data-min' => '0',
            'data-max' => '100',
            'data-width' => '100',
            'data-height' => '100',
        ],
        'knobOptions' => [
            'readOnly' => true,
            'thickness' => '.25',
            'dynamicDraw' => true,
            'fgColor' => '#9fc569',
        ],
    ]
);