* zin: add leadingAngle prop to programmenu.

This commit is contained in:
sunhao
2023-10-18 10:36:24 +08:00
parent 67d62fef2f
commit d6d174e4c2
+3
View File
@@ -14,6 +14,7 @@ class programMenu extends wg
'activeIcon?: string="check"',
'activeKey?: string',
'link?: string',
'leadingAngle?: bool',
);
public static function getPageCSS(): string|false
@@ -70,12 +71,14 @@ class programMenu extends wg
$this->programs = (array)$this->prop('programs');
$activeKey = $this->prop('activeKey');
$link = $this->prop('link');
$leadingAngle = $this->prop('leadingAngle');
$closeLink = str_replace('{id}', '0', $link);
return zui::dropmenu
(
set('_id', 'programMenu'),
set::className('program-menu btn'),
set::defaultValue($activeKey),
set::leadingAngle($leadingAngle),
set::text($this->getTitle($activeKey)),
set::caret(true),
set::popWidth(200),