mirror of
https://github.com/frappe/air-datepicker.git
synced 2026-01-14 11:01:22 +08:00
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
extends ../layout
|
||
|
||
block content
|
||
h1.promo-header
|
||
| AIR DATEPICKER
|
||
span легкий соврменныый jQuery календарь
|
||
|
||
p.-text-center-
|
||
input.promo-input.datepicker-here(type='text' id='example-promo' data-position='bottom center')
|
||
|
||
h2 Установка
|
||
+example-code('html') bower i --save air-datepicker
|
||
p Либо можно скачать файлы напрямую с <a href="">GitHub</a>
|
||
|
||
h2 Использование
|
||
p
|
||
|Календарь автоматически проинициализируется на элементах с классом
|
||
+example-inline('.datepicker-here', 'css')
|
||
|, при этом опции можно передать через
|
||
+example-inline('data', 'html')
|
||
| атрибуты.
|
||
+example-code('html')
|
||
:code
|
||
<input type='text' class="datepicker-here" data-position="right top" />
|
||
h3 Ручная инициализация
|
||
+example-code('js').
|
||
// Инициализация
|
||
$('#my-element').datepicker([options])
|
||
|
||
// Доступ к экземпляру объекта
|
||
$('#my-element').data('datepicker')
|
||
|
||
h2 Примеры
|
||
h3 Инициализация с опциями по умолчанию
|
||
+example
|
||
+example-content
|
||
input(type='text').datepicker-here
|
||
+example-code('html')
|
||
:code
|
||
<input type='text' class='datepicker-here' />
|