drsdre/yii2-add-to-homescreen
最新稳定版本:1.1.1
Composer 安装命令:
composer require drsdre/yii2-add-to-homescreen
包简介
Yii2 asset extension for https://github.com/cubiq/add-to-homescreen
README 文档
README
Yii2 extension for the Add To Homescreen Javascript widget
Requirements:
Yii2 and francoispluchino/composer-asset-plugin.
Installation
This extension should be installed through composer.
Either run
composer require --prefer-dist drsdre/yii2-add-to-homescreen "*"
or add
"drsdre/yii2-add-to-homescreen": "*"
to the require section of your composer.json file.
Usage
In your views/layout/main.php add the following line in the head section:
<?= AddToHomescreenWidget::widget() ;?>
Configuration
The widget can be tweaked through the settings variable:
<?= AddToHomescreenWidget::widget(['settings'=>['message'=>'Add']]) ;?>
Please visit http://cubiq.org/add-to-home-screen for an overview of all possible settings.
统计信息
- 总下载量: 349
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2015-08-13