Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin

kartik-v/yii2-widget-datetimepicker

Kartik Visweswaran

Установить Демо

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin
Kartik Visweswaran

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin (sub repo split from yii2-widgets)

@разработчик решения

Время публикации: четверг, 25 июня 2015 г. (2 года назад)

Добавил: Kartik Visweswaran

Категория: Прочее

Актуальная версия: 1.2.0.x-dev
04 дек. 2014 г., 12:58:45 (2 года назад)

Packagist: kartik-v/yii2-widget-datetimepicker

: https://github.com/kartik-v/yii2-widget-datetimepicker

: 612757 (За месяц: 26935)

Тип: Компонент


Описание от «Kartik Visweswaran»

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin

yii2-widget-datetimepicker

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads

The DateTimePicker widget is a Yii 2 wrapper for the Bootstrap DateTimePicker plugin with various enhancements. The plugin is a fork of the DateTimePicker plugin by @eternicode and adds the time functionality. The widget is similar to the DateTimePicker widget in most aspects, except that it adds the time functionality and does not support ranges. The widget is specially styled for Yii framework 2.0 and Bootstrap 3 and allows graceful degradation to a normal HTML text input, if the browser does not support JQuery. The widget supports these markups:

  • Simple Input Markup
  • Component Markup - Addon Prepended
  • Component Markup - Addon Appended
  • Inline / Embedded Markup
  • Solo Button Markup

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-datetimepicker "*"

or add

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

to the require section of your composer.json file.

Latest Release

NOTE: The latest version of the module is v1.4.2. Refer the CHANGE LOG for details.

Demo

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

Usage

use kartik\datetime\DateTimePicker;

echo '<label>Start Date/Time</label>';
echo DateTimePicker::widget([
    'name' => 'datetime_10',
    'options' => ['placeholder' => 'Select operating time ...'],
    'convertFormat' => true,
    'pluginOptions' => [
        'format' => 'd-M-Y g:i A',
        'startDate' => '01-Mar-2014 12:00 AM',
        'todayHighlight' => true
    ]
]);

License

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


Все комментарии (0)
Нет комментариев

dev-master — 18 июля 2017 г., 11:42:00 (3 месяца назад)

1.2.0.x-dev — 04 дек. 2014 г., 12:58:45 (2 года назад)

1.1.0.x-dev — 28 нояб. 2014 г., 22:20:18 (2 года назад)

1.0.0.x-dev — 08 нояб. 2014 г., 21:48:07 (2 года назад)

v1.4.4 — 08 июня 2017 г., 8:53:28 (4 месяца назад)

v1.4.3 — 19 янв. 2017 г., 18:04:42 (9 месяцев назад)

v1.4.2 — 10 янв. 2016 г., 15:18:38 (год назад)

v1.4.1 — 04 нояб. 2015 г., 21:46:05 (год назад)

v1.4.0 — 25 янв. 2015 г., 19:36:55 (2 года назад)

v1.3.0 — 12 янв. 2015 г., 15:28:59 (2 года назад)

v1.2.0 — 04 дек. 2014 г., 12:58:45 (2 года назад)

v1.1.0 — 28 нояб. 2014 г., 22:20:18 (2 года назад)

v1.0.0 — 08 нояб. 2014 г., 21:48:07 (2 года назад)

Стандартная установка:

Добавьте composer.json файл вашего проекта:

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

Запустите обновление зависимостей


Читать про обнолвение SkeekS CMS