diiimonn/yii2-widget-spinner-canvas

There is no license information available for the latest version (v1.0.0) of this package.

A widget to render canvas with animated loading spinners

v1.0.0 2015-02-23 12:46 UTC

This package is not auto-updated.

Last update: 2024-04-27 14:28:06 UTC


README

A widget to render canvas with animated loading spinners

Installation

To install with composer:

$ php composer.phar require diiimonn/yii2-widget-spinner-canvas "dev-master"

or add

"diiimonn/yii2-widget-spinner-canvas": "dev-master"

to the require section of your composer.json file.

Usage

use diiimonn\widgets\SpinnerCanvas;

...

<?= SpinnerCanvas::widget([
    'options' => [
        'class' => 'spinner',
    ],
    'scriptOptions' => [
        'radius' => 3,
        'height' => 5,
        'width' => 1.6,
        'dashes' => 10,
        'opacity' => 1,
        'padding' => 3,
        'rotation' => 700,
        'color' => '#666666',
    ]
]) ?>
...