air-datepicker/page/jade/pages/index-ru.jade
2015-11-23 12:21:03 +03:00

41 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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' />