File tree Expand file tree Collapse file tree
src/BootstrapBlazor/Components/Select Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 <TreeView TItem =" TValue" Items =" @Items" ShowIcon =" ShowIcon"
2424 OnTreeItemClick =" OnItemClick" ModelEqualityComparer =" @ModelEqualityComparer"
2525 ShowSearch =" ShowSearch" ShowResetSearchButton =" ShowResetSearchButton"
26+ CanExpandWhenDisabled =" CanExpandWhenDisabled"
2627 CustomKeyAttribute =" @CustomKeyAttribute" OnExpandNodeAsync =" @OnExpandNodeAsync" />
2728 </div >
2829 @if (! IsPopover )
Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ public partial class SelectTree<TValue> : IModelEqualityComparer<TValue>
5151 [ Parameter ]
5252 public string ? PlaceHolder { get ; set ; }
5353
54+ /// <summary>
55+ /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false.
56+ /// </summary>
57+ [ Parameter ]
58+ public bool CanExpandWhenDisabled { get ; set ; } = false ;
59+
5460 /// <summary>
5561 /// 获得/设置 字符串比较规则 默认 StringComparison.OrdinalIgnoreCase 大小写不敏感
5662 /// </summary>
You can’t perform that action at this time.
0 commit comments