yii2-add-to-homescreen Yii2 extension to add the Add To Homescreen Javascript widget to a view

Yii2-add-to-homescreen

  1. Installation
  2. Usage
  3. Configuration

Yii2 extension for the Add To Homescreen Javascript widget

Requirements:

  1. Installation
  2. Usage
  3. Configuration

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.

0 0
1 follower
0 downloads
Yii Version: 2.0
License: Apache-2.0
Category: User Interface
Developed by: drsdre
Created on: Aug 13, 2015
Last updated: 2 years ago

Related Extensions