.. Copyright (C) 2010-2021 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 ` | 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 ['ibo-is-hidden', 'ibo-alert--body'] | +-------------------+--------+------------------------------------------------------------+ | AddCssFileRelPath | string | relative path of a CSS file to add | +-------------------+--------+------------------------------------------------------------+ | AddHtml | string | | +-------------------+--------+------------------------------------------------------------+ | AddJsFileRelPath | string | relative path of a JS file to add | +-------------------+--------+------------------------------------------------------------+ | CSSClasses | array | like ['ibo-is-hidden', 'ibo-alert--body'] | +-------------------+--------+------------------------------------------------------------+ | DataAttributes | array | Array of data attributes in the format ['name' => 'value'] | +-------------------+--------+------------------------------------------------------------+ | Disabled | bool | | +-------------------+--------+------------------------------------------------------------+ | IsHidden | bool | Indicates if the block is hidden by default | +-------------------+--------+------------------------------------------------------------+ | Label | string | | +-------------------+--------+------------------------------------------------------------+ | Selected | bool | | +-------------------+--------+------------------------------------------------------------+ | Value | string | | +-------------------+--------+------------------------------------------------------------+ ---- .. include:: /manual/Component/Input/Select/SelectOptionFooter.rst