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
686b17fe
Commit
686b17fe
authored
Sep 27, 2017
by
Valentin Skripnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
parent
63d79ea5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
0 deletions
+90
-0
docs/forms/cmp/index.rst
docs/forms/cmp/index.rst
+1
-0
docs/forms/cmp/listbox.rst
docs/forms/cmp/listbox.rst
+89
-0
No files found.
docs/forms/cmp/index.rst
View file @
686b17fe
...
...
@@ -12,3 +12,4 @@
numericinput
textarea
htd-editor
listbox
docs/forms/cmp/listbox.rst
0 → 100644
View file @
686b17fe
«Выпадающий список»
-------------------
.. js:class:: AS.FORMS.ComboBoxView
Отображение компонента, наследует :js:class:`AS.FORMS.View`
.. code-block:: js
// Выпадающий список со справочником в качестве элементов
{
"id": "listbox-cmp",
"type": "listbox",
"style": {},
"config": {
"read-only": false,
"depends": "listbox-linked", // связь с компонентом
"script": ""
},
"fromHistory": true,
"fullId": "listbox-cmp",
"required": false,
"data": { // значение по-умолчанию
"id": "listbox-cmp",
"type": "listbox",
"value": "2013 год",
"key": "2013"
},
"dataSource": { // источник данных компонента (только для справочника)
"type": "dict", // тип данных
"dict": "year", // код справочника
"key": "title", // код поля справочника для наименования элемента
"value": "value", // код поля справочника для значения элемента
"filter": "value" // код поля справочника для фильтра элемента
}
}
.. code-block:: js
// Выпадающий список со своими элементами
{
"id": "listbox-linked",
"type": "listbox",
"style": {},
"config": {
"read-only": false,
"script": ""
},
"fromHistory": true,
"fullId": "listbox-linked",
"required": false,
"data": {
"id": "listbox-linked",
"type": "listbox",
"value": "Обезьяна",
"key": "2016"
},
"elements": [{ // элементы справочника
"value": "2016", // значение элемента
"label": "Обезьяна", // наименование элемента
"filter": "" // фильтр элемента
}, {
"value": "2015",
"label": "Коза",
"filter": ""
}, {
"value": "2014",
"label": "Лошадь",
"filter": ""
}, {
"value": "2013",
"label": "Змея",
"filter": ""
}]
}
--------------------------------------------------------------------------------
.. js:class:: AS.FORMS.ComboBoxModel
Модель компонента, наследует :js:class:`AS.FORMS.Model`
.. code-block:: js
{
"id": "htd-cmp",
"type": "htd",
"value": "<span style=\"color: #0000ff;\"><strong>Привет!</strong></span>"
}
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