N°3537 new CollapsibleSection component for run_query

This commit is contained in:
Pierre Goiffon
2020-12-21 16:24:50 +01:00
parent 4ebe3d2b2f
commit 5e22c442ce
10 changed files with 310 additions and 28 deletions

View File

@@ -24,6 +24,7 @@ namespace Combodo\iTop\Test\VisualTest\Backoffice;
use Combodo\iTop\Application\UI\Base\Component\Alert\AlertFactory;
use Combodo\iTop\Application\UI\Base\Component\Button\ButtonFactory;
use Combodo\iTop\Application\UI\Base\Component\CollapsibleSection\CollapsibleSection;
use Combodo\iTop\Application\UI\Base\Component\Html\Html;
use Combodo\iTop\Application\UI\Base\Component\Panel\PanelFactory;
use Combodo\iTop\Application\UI\Base\Layout\PageContent\PageContentFactory;
@@ -156,4 +157,13 @@ $oPageContentLayout->AddMainBlock($oPanel);
$oPageContentLayout->AddMainBlock(new Html('<hr/>'));
/////////
// Collapsible Section
/////////
$oCollapsibleSectionTitle = new Html('<h2 id="title-panels">Collapsible Sections examples</h2>');
$oPage->AddUiBlock($oCollapsibleSectionTitle);
$oCollapsibleSection = new CollapsibleSection('Section title', [new Html("This the section content !")]);
$oPage->AddUiBlock($oCollapsibleSection);
$oPage->output();