Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sd-doc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Skripnikov
sd-doc
Commits
e29743eb
Commit
e29743eb
authored
Nov 02, 2017
by
Valentin Skripnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
parent
6606032e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
docs/forms/widgets-examples/datepicker.rst
docs/forms/widgets-examples/datepicker.rst
+18
-2
docs/forms/widgets.rst
docs/forms/widgets.rst
+2
-0
No files found.
docs/forms/widgets-examples/datepicker.rst
View file @
e29743eb
Пример
.. _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}г."));
});
});
docs/forms/widgets.rst
View file @
e29743eb
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment