FastClick Asset Bundle for Yii2
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist codezeen/yii2-fastclick "*"
or add
"codezeen/yii2-fastclick": "*"
to the require section of your composer.json
file.
Once the extension is installed, use the following code in view to register asset :
<?= \codezeen\yii2\fastclick\FastClickAsset::register($this); ?>
Or used as dependencies in asset bundle
class AppAsset extends AssetBundle
{
public $depends = [
// ...
'codezeen\yii2\fastclick\FastClickAsset',
// ...
];
}
Please, check https://github.com/ftlabs/fastclick for more information about fastclick.js.
Comments