Class CollapseItem
- Namespace
- BootstrapBlazor.Components
- Assembly
- BootstrapBlazor.dll
CollapseItem 组件
public class CollapseItem : BootstrapComponentBase, IComponent, IHandleAfterRender, IHandleEvent, IDisposable
- Inheritance
-
CollapseItem
- Implements
- Inherited Members
- Extension Methods
Constructors
CollapseItem()
public CollapseItem()
Properties
ChildContent
获得/设置 组件内容
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
Class
获得/设置 CSS 样式名称 默认 null
[Parameter]
public string? Class { get; set; }
Property Value
Collpase
获得/设置 所属 Collapse 实例
[CascadingParameter]
protected Collapse? Collpase { get; set; }
Property Value
Icon
获得/设置 图标字符串 默认为 null
[Parameter]
public string? Icon { get; set; }
Property Value
IsCollapsed
获得/设置 当前状态是否激活 默认 true
[Parameter]
public bool IsCollapsed { get; set; }
Property Value
Text
获得/设置 文本文字
[Parameter]
public string? Text { get; set; }
Property Value
TitleColor
获得/设置 标题颜色 默认无颜色 Color.None
[Parameter]
public Color TitleColor { get; set; }
Property Value
Methods
Dispose()
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
OnInitialized()
OnInitialized 方法
protected override void OnInitialized()
SetCollapsed(bool)
设置是否被选中方法
public virtual void SetCollapsed(bool collapsed)
Parameters
collapsed
bool