mirror of
https://github.com/frappe/air-datepicker.git
synced 2026-01-14 02:49:13 +08:00
add docs for todayButton new functionality
This commit is contained in:
parent
da2d3ae19d
commit
001894484b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -668,8 +668,13 @@ block content
|
||||
p Если true, то будет включен режим выбора диапазона дат. В качестве разделителя будет использован
|
||||
+example-inline('multipleDatesSeparator')
|
||||
.param
|
||||
+param-header('todayButton', 'boolean', 'false')
|
||||
p Если true, то будет отображена кнопка "Сегодня".
|
||||
+param-header('todayButton', 'boolean|Date', 'false')
|
||||
p Если true, то будет отображена кнопка "Сегодня". Если передать объект даты, то при клике по кнопке будет осуществлен переход и последующий выбор этой даты.
|
||||
+example-code('js').
|
||||
// Выбор сегодняшнего дня
|
||||
$('.datepicker').datepicker({
|
||||
todayButton: new Date()
|
||||
})
|
||||
|
||||
.param
|
||||
+param-header('clearButton', 'boolean', 'false')
|
||||
|
||||
@ -645,8 +645,13 @@ block content
|
||||
+example-inline('multipleDatesSeparator')
|
||||
| will be used as dates separator.
|
||||
.param
|
||||
+param-header('todayButton', 'boolean', 'false')
|
||||
p If true, then button "Today" will be visible.
|
||||
+param-header('todayButton', 'boolean|Date', 'false')
|
||||
p If true, then button "Today" will be visible. If Date is passed then click event will also select passed date.
|
||||
+example-code('js').
|
||||
// Select today
|
||||
$('.datepicker').datepicker({
|
||||
todayButton: new Date()
|
||||
})
|
||||
.param
|
||||
+param-header('clearButton', 'boolean', 'false')
|
||||
p If true, then button "Clear" will be visible.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user