Table of Contents

Class NodeItem

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

节点类组件基类

public abstract class NodeItem
Inheritance
NodeItem
Derived
Inherited Members
Extension Methods

Constructors

NodeItem()

protected NodeItem()

Properties

CssClass

获得/设置 自定义样式名

public string? CssClass { get; set; }

Property Value

string

Icon

获得/设置 图标

public string? Icon { get; set; }

Property Value

string

Id

获得/设置 当前节点 Id 默认为 null

public string? Id { get; set; }

Property Value

string

Remarks

一般配合数据库使用

IsActive

获得/设置 是否选中当前节点 默认 false

public bool IsActive { get; set; }

Property Value

bool

IsCollapsed

获得/设置 是否收缩 默认 true 收缩

public bool IsCollapsed { get; set; }

Property Value

bool

IsDisabled

获得/设置 是否被禁用 默认 false

public bool IsDisabled { get; set; }

Property Value

bool

ParentId

获得/设置 父级节点 Id 默认为 null

public string? ParentId { get; set; }

Property Value

string

Remarks

一般配合数据库使用

Template

获得/设置 子组件模板 默认为 null

public RenderFragment? Template { get; set; }

Property Value

RenderFragment

Text

获得/设置 显示文字

public string? Text { get; set; }

Property Value

string