Table of Contents

Class ContextMenuItem

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

ContextMenuItem 类

public class ContextMenuItem : BootstrapComponentBase, IComponent, IHandleAfterRender, IHandleEvent
Inheritance
ContextMenuItem
Implements
Inherited Members
Extension Methods

Constructors

ContextMenuItem()

public ContextMenuItem()

Properties

Disabled

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

[Parameter]
public bool Disabled { get; set; }

Property Value

bool

Icon

获得/设置 图标

[Parameter]
public string? Icon { get; set; }

Property Value

string

OnClick

获得/设置 点击回调方法 默认 null

[Parameter]
public Func<ContextMenuItem, object?, Task>? OnClick { get; set; }

Property Value

Func<ContextMenuItem, object, Task>

Text

获得/设置 显示文本

[Parameter]
public string? Text { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder