FAF: Documentation UI Twig Blocks

This commit is contained in:
Eric
2021-05-31 14:52:42 +02:00
parent 94fbb91ad2
commit 2f0ad03070
2 changed files with 8 additions and 11 deletions

View File

@@ -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;

View File

@@ -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: