Skip to content

skepticspriggan/yii2-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Yii2 Switch

A simple switch with a low waste of resources and fast response time.

Installation

Install the package with composer by executing the command:

composer require "skepticspriggan/yii2-switch:*"

Usage

<?php
use SkepticSpriggan\Switch;

echo Switch::widget([
    'label' => 'Light',
    'checked' => true,
    'onUrl' => Url::to(['light/on']),
    'offUrl' => Url::to(['light/off']),
]);
?>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published