kartik-v/yii2-widget-touchspin A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes & radios as toggle touchspines (sub repo split from yii2-widgets)

extensionwidgetbootstrapjquerypluginforminputtouchspinner

Krajee Logo
yii2-widget-touchspin Donate

Stable Version Unstable Version License Total Downloads Monthly Downloads Daily Downloads

The TouchSpin widget is a Yii 2 wrapper for for the bootstrap-touchspin plugin by István Ujj-Mészáros, with certain additional enhancements. This input widget is a mobile and touch friendly input spinner component for Bootstrap 3. You can use the widget buttons to rapidly increase and decrease numeric and/or decimal values in your input field. The widget can be setup to include model validation rules for the related model attribute.

NOTE: This extension is a sub repo split of yii2-widgets. The split has been done since 08-Nov-2014 to allow developers to install this specific widget in isolation if needed. One can also use the extension the previous way with the whole suite of yii2-widgets.

Installation

The preferred way to install this extension is through composer. Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json.

To install, either run

$ php composer.phar require kartik-v/yii2-widget-touchspin "*"

or add

"kartik-v/yii2-widget-touchspin": "*"

to the require section of your composer.json file.

Release Changes

NOTE: Refer the CHANGE LOG for details on changes to various releases.

Demo

You can refer detailed documentation and demos on usage of the extension.

Usage

use kartik\touchspin\TouchSpin;

echo TouchSpin::widget([
    'name' => 'volume',
    'options' => ['placeholder' => 'Adjust...'],
    'pluginOptions' => ['step' => 1]
]);

License

yii2-widget-touchspin is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.

Changelog

Change Log: yii2-widget-touchspin

Version 1.2.4

Date: 02-Sep-2021

  • (enh #12): Enhancements to support Bootstrap v5.x.

Version 1.2.3

Date: 05-Sep-2018

  • (enh #10): Correct btn-vertical bootstrap markup styling.

Version 1.2.4

Date: 05-Sep-2018

  • (enh #10): Correct btn-vertical bootstrap markup styling.

Version 1.2.2

Date: 17-Aug-2018

  • Add Bootstrap 4.x support
  • Upgrade source plugin to latest release
  • Add github contribution and PR/issue log templates.
  • Update copyright year to current.
  • Reorganize all source code in src directory.

Version 1.2.1

Date: 10-Jan-2016

  • Enhancements for PJAX based reinitialization. Complements enhancements in kartik-v/yii2-krajee-base#52 and kartik-v/yii2-krajee-base#53.

Version 1.2.0

Date: 04-Dec-2014

  • (enh #2): Enhance widget for updated bootstrap-touchspin plugin.
  • (enh #3): Validate InputWidget disabled setting.

Version 1.1.0

Date: 15-Nov-2014

  • (enh #204): Set a better z-index for TouchSpin Input Group to avoid dropdown overlays getting hidden.
  • (enh #1): Add special styling for bootstrap input group button addons for success and error states.
  • Set release to stable.

Version 1.0.0

Date: 08-Nov-2014

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v1.2.4 is the latest of 7 releases



BSD-3-Clause license
Stats
18 github stars & 2 github forks
2012 downloads in the last day
43070 downloads in the last 30 days
2950608 total downloads