N°2737 - Migrate WebPage::table() to UIBlocks

This commit is contained in:
Eric
2021-01-12 16:17:33 +01:00
parent e0fe657f27
commit 503817e572
8 changed files with 19 additions and 15 deletions

View File

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