mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°2737 - Migrate WebPage::table() to UIBlocks
This commit is contained in:
@@ -98,8 +98,8 @@ function ShowExamples($oP, $sExpression)
|
||||
|
||||
foreach ($aDisplayData as $sTopic => $aQueriesDisplayData) {
|
||||
$bShowOpened = $bUsingExample;
|
||||
$sTopicHtml = $oP->GetTable($aDisplayConfig, $aQueriesDisplayData);
|
||||
$oTopicSection = new CollapsibleSection($sTopic, [new Html($sTopicHtml)]);
|
||||
$oTopic = $oP->GetTableBlock($aDisplayConfig, $aQueriesDisplayData);
|
||||
$oTopicSection = new CollapsibleSection($sTopic, [$oTopic]);
|
||||
$oTopicSection->SetOpenedByDefault($bShowOpened);
|
||||
$oP->AddUiBlock($oTopicSection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user