mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 03:58:45 +02:00
Doc Twig UI blocks
This commit is contained in:
133
.doc/UI/source/generated/Component/Input/Select/Select.rst
Normal file
133
.doc/UI/source/generated/Component/Input/Select/Select.rst
Normal file
@@ -0,0 +1,133 @@
|
||||
.. Copyright (C) 2010-2022 Combodo SARL
|
||||
.. http://opensource.org/licenses/AGPL-3.0
|
||||
|
||||
.. _Select:
|
||||
|
||||
Select
|
||||
======
|
||||
|
||||
Class Select
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/Select/SelectAdditionalDescription.rst
|
||||
|
||||
----
|
||||
|
||||
Twig Tag
|
||||
--------
|
||||
|
||||
:Tag: **UISelect**
|
||||
|
||||
:Syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UISelect Type {Parameters} %}
|
||||
Content Goes Here
|
||||
{% EndUISelect %}
|
||||
|
||||
:Type:
|
||||
|
||||
+------------------------------------------------------+------------------------------------+
|
||||
| :ref:`ForSelect <SelectForSelect>` | Create a default Select input |
|
||||
+------------------------------------------------------+------------------------------------+
|
||||
| :ref:`ForSelectWithLabel <SelectForSelectWithLabel>` | Create a Select input with a label |
|
||||
+------------------------------------------------------+------------------------------------+
|
||||
|
||||
.. _SelectForSelect:
|
||||
|
||||
Select ForSelect
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
:syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UISelect ForSelect {sName:'value', sId:'value'} %}
|
||||
Content Goes Here
|
||||
{% EndUISelect %}
|
||||
|
||||
:parameters:
|
||||
|
||||
+-------+--------+-----------+------+-------------------------+
|
||||
| sName | string | mandatory | | Input name for the form |
|
||||
+-------+--------+-----------+------+-------------------------+
|
||||
| sId | string | optional | NULL | ID of the block |
|
||||
+-------+--------+-----------+------+-------------------------+
|
||||
|
||||
.. _SelectForSelectWithLabel:
|
||||
|
||||
Select ForSelectWithLabel
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
:syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UISelect ForSelectWithLabel {sName:'value', sLabel:'value', sId:'value'} %}
|
||||
Content Goes Here
|
||||
{% EndUISelect %}
|
||||
|
||||
:parameters:
|
||||
|
||||
+--------+--------+-----------+------+-----------------------------------------------------+
|
||||
| sName | string | mandatory | | Input name for the form |
|
||||
+--------+--------+-----------+------+-----------------------------------------------------+
|
||||
| sLabel | string | mandatory | | Label to display with the input (null for no label) |
|
||||
+--------+--------+-----------+------+-----------------------------------------------------+
|
||||
| sId | string | optional | NULL | ID of the block |
|
||||
+--------+--------+-----------+------+-----------------------------------------------------+
|
||||
|
||||
Select common parameters
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddCSSClass | string | CSS class to add to the generated html block |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddCSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddCssFileRelPath | string | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddDeferredBlock | iUIBlock | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddHtml | string | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddJsFileRelPath | string | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddMultipleCssFilesRelPaths | array | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddMultipleJsFilesRelPaths | array | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddOption | SelectOption | Select option UIBlock |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| AddSubBlock | iUIBlock | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| CSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| DataAttributes | array | Array of data attributes in the format ['name' => 'value'] |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| DeferredBlocks | array | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| Description | string | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| HasForcedDiv | bool | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| IsHidden | bool | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| IsLabelBefore | bool | If true the label will be positioned before the input |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| IsMultiple | bool | Allow multiple selection |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| Label | string | Label to display with the input (null for no label) |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| Name | string | Input name for the form |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| SubBlocks | array | |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
| SubmitOnChange | bool | if true submit the form as soon as a change is detected |
|
||||
+-----------------------------+--------------+------------------------------------------------------------+
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/Select/SelectFooter.rst
|
||||
@@ -0,0 +1,92 @@
|
||||
.. Copyright (C) 2010-2022 Combodo SARL
|
||||
.. http://opensource.org/licenses/AGPL-3.0
|
||||
|
||||
.. _SelectOption:
|
||||
|
||||
SelectOption
|
||||
============
|
||||
|
||||
Class SelectOption
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/Select/SelectOptionAdditionalDescription.rst
|
||||
|
||||
----
|
||||
|
||||
Twig Tag
|
||||
--------
|
||||
|
||||
:Tag: **UISelectOption**
|
||||
|
||||
:Syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UISelectOption Type {Parameters} %}
|
||||
|
||||
:Type:
|
||||
|
||||
+------------------------------------------------------+------------+
|
||||
| :ref:`ForSelectOption <SelectOptionForSelectOption>` | No comment |
|
||||
+------------------------------------------------------+------------+
|
||||
|
||||
.. _SelectOptionForSelectOption:
|
||||
|
||||
SelectOption ForSelectOption
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
:syntax:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
{% UISelectOption ForSelectOption {sValue:'value', sLabel:'value', bSelected:true, sId:'value'} %}
|
||||
|
||||
:parameters:
|
||||
|
||||
+-----------+--------+-----------+------+--+
|
||||
| sValue | string | mandatory | | |
|
||||
+-----------+--------+-----------+------+--+
|
||||
| sLabel | string | mandatory | | |
|
||||
+-----------+--------+-----------+------+--+
|
||||
| bSelected | bool | mandatory | | |
|
||||
+-----------+--------+-----------+------+--+
|
||||
| sId | string | optional | NULL | |
|
||||
+-----------+--------+-----------+------+--+
|
||||
|
||||
SelectOption common parameters
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCSSClass | string | CSS class to add to the generated html block |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddCssFileRelPath | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddHtml | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddJsFileRelPath | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddMultipleCssFilesRelPaths | array | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| AddMultipleJsFilesRelPaths | array | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| CSSClasses | array | like <code>['ibo-is-hidden', 'ibo-alert--body']</code> |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| DataAttributes | array | Array of data attributes in the format ['name' => 'value'] |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Disabled | bool | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| IsHidden | bool | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Label | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Selected | bool | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
| Value | string | |
|
||||
+-----------------------------+--------+------------------------------------------------------------+
|
||||
|
||||
----
|
||||
|
||||
.. include:: /manual/Component/Input/Select/SelectOptionFooter.rst
|
||||
Reference in New Issue
Block a user