File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
src/BootstrapBlazor/Components/Dropdown Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ @namespace BootstrapBlazor.Components
2+
3+ <h3 >DropdownDivider</h3 >
4+
5+ @code {
6+
7+ }
Original file line number Diff line number Diff line change 1+ @namespace BootstrapBlazor.Components
2+
3+ <DynamicElement @key =" item" class =" @GetItemClassString(disabled)"
4+ TriggerClick =" !disabled" OnClick =" () => OnClickItem(item)" >
5+ <i class =" @GetItemIconString(item)" ></i >
6+ <span >@item.Text </span >
7+ </DynamicElement >
8+
9+ @code {
10+ /// <summary >
11+ /// 获得/设置 显示文本
12+ /// </summary >
13+ [Parameter ]
14+ public string ? Text { get ; set ; }
15+
16+ /// <summary >
17+ /// 获得/设置 图标
18+ /// </summary >
19+ [Parameter ]
20+ public string ? Icon { get ; set ; }
21+
22+ /// <summary >
23+ /// 获得/设置 是否被禁用 默认 false 优先级低于 <see cref =" OnDisabledCallback" />
24+ /// </summary >
25+ [Parameter ]
26+ public bool Disabled { get ; set ; }
27+
28+ /// <summary >
29+ /// 获得/设置 是否被禁用回调方法 默认 null 优先级高于 <see cref =" Disabled" />
30+ /// </summary >
31+ [Parameter ]
32+ public Func <ContextMenuItem , object?, bool >? OnDisabledCallback { get ; set ; }
33+
34+ /// <summary >
35+ /// 获得/设置 点击回调方法 默认 null
36+ /// </summary >
37+ [Parameter ]
38+ public Func <ContextMenuItem , object?, Task >? OnClick { get ; set ; }
39+ }
You can’t perform that action at this time.
0 commit comments