mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 01:28:47 +02:00
FAF: Documentation UI Twig Blocks
This commit is contained in:
@@ -395,9 +395,6 @@ foreach ($aFactoryClasses as $sFactoryClass) {
|
||||
}
|
||||
if (!empty($sName)) {
|
||||
// Get the param name
|
||||
$aReflectionParameters = $oMethod->getParameters();
|
||||
$oReflectionParameter = $aReflectionParameters[0];
|
||||
$sFullComment = GetMethodComment($oMethod, $oReflectionParameter->getName());
|
||||
$aParams = GetMethodParameters($oMethod)[0];
|
||||
$aParams['name'] = $sName;
|
||||
$aDocGeneralParams[] = $aParams;
|
||||
|
||||
@@ -54,7 +54,7 @@ Twig Tag
|
||||
+--------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`LinkNeutral <ButtonLinkNeutral>` | Make a link Button component to open an URL instead of triggering a form action |
|
||||
+--------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`IconLink <ButtonIconLink>` | @param string $sIconClasses |
|
||||
| :ref:`IconLink <ButtonIconLink>` | Make an icon button with link |
|
||||
+--------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`DestructiveIconLink <ButtonDestructiveIconLink>` | @param string $sIconClasses |
|
||||
+--------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------+
|
||||
@@ -72,13 +72,13 @@ Button Neutral
|
||||
|
||||
:parameters:
|
||||
|
||||
+--------+--------+-----------+------+--------------------------------------------+
|
||||
| sLabel | string | mandatory | | |
|
||||
+--------+--------+-----------+------+--------------------------------------------+
|
||||
| sName | string | optional | NULL | The HTML name of the button, used by forms |
|
||||
+--------+--------+-----------+------+--------------------------------------------+
|
||||
| sId | string | optional | NULL | UIBBlock main HTML tag id |
|
||||
+--------+--------+-----------+------+--------------------------------------------+
|
||||
+--------+--------+-----------+------+----------------------------+
|
||||
| sLabel | string | mandatory | | |
|
||||
+--------+--------+-----------+------+----------------------------+
|
||||
| sName | string | optional | NULL | See {@link Button::$sName} |
|
||||
+--------+--------+-----------+------+----------------------------+
|
||||
| sId | string | optional | NULL | |
|
||||
+--------+--------+-----------+------+----------------------------+
|
||||
|
||||
.. _ButtonForPrimaryAction:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user