.. Copyright (C) 2010-2021 Combodo SARL .. http://opensource.org/licenses/AGPL-3.0 .. _DataTable: DataTable ========= Class DataTable ---- .. include:: /manual/Component/DataTable/DataTableAdditionalDescription.rst ---- Twig Tag -------- :Tag: **UIDataTable** :Syntax: :: {% UIDataTable Type {Parameters} %} Content Goes Here {% EndUIDataTable %} :Type: +---------------------------------------------------------+------------------------------+ | :ref:`ForResult ` | @param \WebPage $oPage | +---------------------------------------------------------+------------------------------+ | :ref:`ForObject ` | @param \WebPage $oPage | +---------------------------------------------------------+------------------------------+ | :ref:`ForRendering ` | Make a basis Panel component | +---------------------------------------------------------+------------------------------+ | :ref:`ForRenderingObject ` | @param string $sListId | +---------------------------------------------------------+------------------------------+ | :ref:`ForStaticData ` | No comment | +---------------------------------------------------------+------------------------------+ | :ref:`ForForm ` | @param string $sRef | +---------------------------------------------------------+------------------------------+ .. _DataTableForResult: DataTable ForResult ^^^^^^^^^^^^^^^^^^^ :syntax: :: {% UIDataTable ForResult {oPage:value, sListId:'value', oSet:value, aExtraParams:value} %} Content Goes Here {% EndUIDataTable %} :parameters: +--------------+-------------+-----------+----------+--+ | oPage | WebPage | mandatory | | | +--------------+-------------+-----------+----------+--+ | sListId | string | mandatory | | | +--------------+-------------+-----------+----------+--+ | oSet | DBObjectSet | mandatory | | | +--------------+-------------+-----------+----------+--+ | aExtraParams | | optional | array () | | +--------------+-------------+-----------+----------+--+ .. _DataTableForObject: DataTable ForObject ^^^^^^^^^^^^^^^^^^^ :syntax: :: {% UIDataTable ForObject {oPage:value, sListId:'value', oSet:value, aExtraParams:value} %} Content Goes Here {% EndUIDataTable %} :parameters: +--------------+-------------+-----------+----------+--+ | oPage | WebPage | mandatory | | | +--------------+-------------+-----------+----------+--+ | sListId | string | mandatory | | | +--------------+-------------+-----------+----------+--+ | oSet | DBObjectSet | mandatory | | | +--------------+-------------+-----------+----------+--+ | aExtraParams | | optional | array () | | +--------------+-------------+-----------+----------+--+ .. _DataTableForRendering: DataTable ForRendering ^^^^^^^^^^^^^^^^^^^^^^ :syntax: :: {% UIDataTable ForRendering {sListId:'value', oSet:value, aExtraParams:value} %} Content Goes Here {% EndUIDataTable %} :parameters: +--------------+-------------+-----------+----------+--+ | sListId | string | mandatory | | | +--------------+-------------+-----------+----------+--+ | oSet | DBObjectSet | mandatory | | | +--------------+-------------+-----------+----------+--+ | aExtraParams | | optional | array () | | +--------------+-------------+-----------+----------+--+ .. _DataTableForRenderingObject: DataTable ForRenderingObject ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :syntax: :: {% UIDataTable ForRenderingObject {sListId:'value', oSet:value, aExtraParams:value} %} Content Goes Here {% EndUIDataTable %} :parameters: +--------------+-------------+-----------+----------+--+ | sListId | string | mandatory | | | +--------------+-------------+-----------+----------+--+ | oSet | DBObjectSet | mandatory | | | +--------------+-------------+-----------+----------+--+ | aExtraParams | | optional | array () | | +--------------+-------------+-----------+----------+--+ .. _DataTableForStaticData: DataTable ForStaticData ^^^^^^^^^^^^^^^^^^^^^^^ :syntax: :: {% UIDataTable ForStaticData {sTitle:'value', aColumns:{name:value, name:value}, aData:{name:value, name:value}, sId:'value', aExtraParams:{name:value, name:value}, sFilter:'value', aOptions:{name:value, name:value}} %} Content Goes Here {% EndUIDataTable %} :parameters: +--------------+--------+-----------+----------+--+ | sTitle | string | mandatory | | | +--------------+--------+-----------+----------+--+ | aColumns | array | mandatory | | | +--------------+--------+-----------+----------+--+ | aData | array | mandatory | | | +--------------+--------+-----------+----------+--+ | sId | string | optional | NULL | | +--------------+--------+-----------+----------+--+ | aExtraParams | array | optional | array () | | +--------------+--------+-----------+----------+--+ | sFilter | string | optional | '' | | +--------------+--------+-----------+----------+--+ | aOptions | array | optional | array () | | +--------------+--------+-----------+----------+--+ .. _DataTableForForm: DataTable ForForm ^^^^^^^^^^^^^^^^^ :syntax: :: {% UIDataTable ForForm {sRef:'value', aColumns:{name:value, name:value}, aData:{name:value, name:value}, sFilter:'value'} %} Content Goes Here {% EndUIDataTable %} :parameters: +----------+--------+-----------+----------+--+ | sRef | string | mandatory | | | +----------+--------+-----------+----------+--+ | aColumns | array | mandatory | | | +----------+--------+-----------+----------+--+ | aData | array | optional | array () | | +----------+--------+-----------+----------+--+ | sFilter | string | optional | '' | | +----------+--------+-----------+----------+--+ DataTable 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 | +-------------------+----------+------------------------------------------------------------+ | AddDeferredBlock | iUIBlock | | +-------------------+----------+------------------------------------------------------------+ | AddHtml | string | | +-------------------+----------+------------------------------------------------------------+ | AddJsFileRelPath | string | relative path of a JS file to add | +-------------------+----------+------------------------------------------------------------+ | AddSubBlock | iUIBlock | | +-------------------+----------+------------------------------------------------------------+ | AjaxData | array | | +-------------------+----------+------------------------------------------------------------+ | AjaxUrl | string | | +-------------------+----------+------------------------------------------------------------+ | CSSClasses | array | like ['ibo-is-hidden', 'ibo-alert--body'] | +-------------------+----------+------------------------------------------------------------+ | DataAttributes | array | Array of data attributes in the format ['name' => 'value'] | +-------------------+----------+------------------------------------------------------------+ | DeferredBlocks | array | | +-------------------+----------+------------------------------------------------------------+ | DisplayColumns | | | +-------------------+----------+------------------------------------------------------------+ | IsHidden | bool | Indicates if the block is hidden by default | +-------------------+----------+------------------------------------------------------------+ | JSRefresh | string | | +-------------------+----------+------------------------------------------------------------+ | Options | | | +-------------------+----------+------------------------------------------------------------+ | ResultColumns | | | +-------------------+----------+------------------------------------------------------------+ | SubBlocks | array | | +-------------------+----------+------------------------------------------------------------+ ---- .. include:: /manual/Component/DataTable/DataTableFooter.rst