.. Copyright (C) 2010-2022 Combodo SARL .. http://opensource.org/licenses/AGPL-3.0 .. _Input: Input ===== Class Input ---- .. include:: /manual/Component/Input/InputAdditionalDescription.rst ---- Twig Tag -------- :Tag: **UIInput** :Syntax: .. code-block:: twig {% UIInput Type {Parameters} %} :Type: +---------------------------------------------------+------------------------------------------------------------------------------------+ | :ref:`ForHidden ` | No comment | +---------------------------------------------------+------------------------------------------------------------------------------------+ | :ref:`Standard ` | No comment | +---------------------------------------------------+------------------------------------------------------------------------------------+ | :ref:`ForInputWithLabel ` | @see Field component that is better adapter when dealing with a standard iTop form | +---------------------------------------------------+------------------------------------------------------------------------------------+ .. _InputForHidden: Input ForHidden ^^^^^^^^^^^^^^^ :syntax: .. code-block:: twig {% UIInput ForHidden {sName:'value', sValue:'value', sId:'value'} %} :parameters: +--------+--------+-----------+------+--+ | sName | string | mandatory | | | +--------+--------+-----------+------+--+ | sValue | string | mandatory | | | +--------+--------+-----------+------+--+ | sId | string | optional | NULL | | +--------+--------+-----------+------+--+ .. _InputStandard: Input Standard ^^^^^^^^^^^^^^ :syntax: .. code-block:: twig {% UIInput Standard {sType:'value', sName:'value', sValue:'value', sId:'value'} %} :parameters: +--------+--------+-----------+------+--+ | sType | string | mandatory | | | +--------+--------+-----------+------+--+ | sName | string | mandatory | | | +--------+--------+-----------+------+--+ | sValue | string | mandatory | | | +--------+--------+-----------+------+--+ | sId | string | optional | NULL | | +--------+--------+-----------+------+--+ .. _InputForInputWithLabel: Input ForInputWithLabel ^^^^^^^^^^^^^^^^^^^^^^^ :syntax: .. code-block:: twig {% UIInput ForInputWithLabel {sLabel:'value', sInputName:'value', sInputValue:'value', sInputId:'value', sInputType:'value'} %} :parameters: +-------------+--------+-----------+--------+--+ | sLabel | string | mandatory | | | +-------------+--------+-----------+--------+--+ | sInputName | string | mandatory | | | +-------------+--------+-----------+--------+--+ | sInputValue | string | optional | NULL | | +-------------+--------+-----------+--------+--+ | sInputId | string | optional | NULL | | +-------------+--------+-----------+--------+--+ | sInputType | string | optional | 'type' | | +-------------+--------+-----------+--------+--+ Input common parameters ^^^^^^^^^^^^^^^^^^^^^^^ +-----------------------------+--------+------------------------------------------------------------+ | AddCSSClass | string | CSS class to add to the generated html block | +-----------------------------+--------+------------------------------------------------------------+ | AddCSSClasses | array | like ['ibo-is-hidden', 'ibo-alert--body'] | +-----------------------------+--------+------------------------------------------------------------+ | AddCssFileRelPath | string | | +-----------------------------+--------+------------------------------------------------------------+ | AddHtml | string | | +-----------------------------+--------+------------------------------------------------------------+ | AddJsFileRelPath | string | | +-----------------------------+--------+------------------------------------------------------------+ | AddMultipleCssFilesRelPaths | array | | +-----------------------------+--------+------------------------------------------------------------+ | AddMultipleJsFilesRelPaths | array | | +-----------------------------+--------+------------------------------------------------------------+ | CSSClasses | array | like ['ibo-is-hidden', 'ibo-alert--body'] | +-----------------------------+--------+------------------------------------------------------------+ | DataAttributes | array | Array of data attributes in the format ['name' => 'value'] | +-----------------------------+--------+------------------------------------------------------------+ | IsChecked | | | +-----------------------------+--------+------------------------------------------------------------+ | IsDisabled | bool | | +-----------------------------+--------+------------------------------------------------------------+ | IsHidden | bool | | +-----------------------------+--------+------------------------------------------------------------+ | IsReadonly | bool | | +-----------------------------+--------+------------------------------------------------------------+ | Label | | | +-----------------------------+--------+------------------------------------------------------------+ | Name | string | | +-----------------------------+--------+------------------------------------------------------------+ | Placeholder | string | | +-----------------------------+--------+------------------------------------------------------------+ | Type | string | | +-----------------------------+--------+------------------------------------------------------------+ | Value | string | | +-----------------------------+--------+------------------------------------------------------------+ ---- .. include:: /manual/Component/Input/InputFooter.rst