Commit e29743eb authored by Valentin Skripnikov's avatar Valentin Skripnikov

-

parent 6606032e
Пример .. _widgets-examples-datepicker:
Пример DatePicker
"""""""""""""""""
.. raw:: html .. raw:: html
<iframe src="../../_static/html/forms/widgets/datepicker.html" scrolling='no' frameBorder="0" height="200px" width="100%"></iframe> <iframe src="../../_static/html/forms/widgets/datepicker.html" scrolling='no' frameBorder="0" height="350px" width="100%"></iframe>
Исходный код функции
.. code-block:: js
$("[data-asformid='textbox.input.textbox-cmp']").click(function () {
AS.SERVICES.showDatePicker(new Date(),
$("[data-asformid='textbox.input.textbox-cmp']"),
$("[data-asformid='textbox.input.textbox-cmp']"),
function (date) {
model.setValue(AS.FORMS.DateUtils.formatDate(date, "${dd} ${monthed} ${yyyy}г."));
});
});
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
.. js:function:: showDatePicker(value, anchor, input, handler) .. js:function:: showDatePicker(value, anchor, input, handler)
:ref:`widgets-examples-datepicker`
.. js:function:: showDepartmentChooserDialog .. js:function:: showDepartmentChooserDialog
.. js:function:: showDropDown .. js:function:: showDropDown
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment