N°2847 - Alert: Add properties to set if closable or collapsible

This commit is contained in:
Molkobain
2020-12-22 17:22:51 +01:00
parent 874bf38316
commit fc3f096823
3 changed files with 84 additions and 9 deletions

View File

@@ -78,6 +78,10 @@ $oPageContentLayout->AddMainBlock(AlertFactory::MakeForDanger('Alert for danger'
$oPageContentLayout->AddMainBlock(AlertFactory::MakeForFailure('Alert for failure', $sContent));
$oPageContentLayout->AddMainBlock(AlertFactory::MakeWithBrandingPrimaryColor('Alert with branding primary color', $sContent));
$oPageContentLayout->AddMainBlock(AlertFactory::MakeWithBrandingSecondaryColor('Alert with branding secondary color', $sContent));
$oAlertNonClosable = AlertFactory::MakeNeutral('Alert not closable, not collapsable', $sContent)
->SetIsClosable(false)
->SetIsCollapsible(false);
$oPageContentLayout->AddMainBlock($oAlertNonClosable);
$oPageContentLayout->AddMainBlock(new Html('<hr/>'));