chg: [BootstrapHelper:dropdownMenu] Added support of class for menu entries

develop-unstable
Sami Mokaddem 2023-01-19 10:25:52 +01:00
parent fb418ca0b4
commit 5388b4d185
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 6 additions and 0 deletions

View File

@ -177,6 +177,12 @@ class BootstrapDropdownMenu extends BootstrapGeneric
}
$classes = ['dropdown-item'];
if (!empty($entry['class'])) {
if (!is_array($entry['class'])) {
$entry['class'] = [$entry['class']];
}
$classes = array_merge($classes, $entry['class']);
}
$params = ['href' => '#'];
if (!empty($entry['menu'])) {