Table of Contents

Class PopConfirmButtonBase

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

确认弹窗按钮组件

public abstract class PopConfirmButtonBase : ButtonBase, IComponent, IHandleAfterRender, IHandleEvent, IAsyncDisposable
Inheritance
PopConfirmButtonBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

PopConfirmButtonBase()

protected PopConfirmButtonBase()

Properties

BodyTemplate

获得/设置 自定义内容

[Parameter]
public RenderFragment? BodyTemplate { get; set; }

Property Value

RenderFragment

CloseButtonColor

获得/设置 确认按钮颜色

[Parameter]
public Color CloseButtonColor { get; set; }

Property Value

Color

CloseButtonText

获得/设置 关闭按钮显示文字 默认为 关闭

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

Property Value

string

ConfirmButtonColor

获得/设置 确认按钮颜色

[Parameter]
public Color ConfirmButtonColor { get; set; }

Property Value

Color

ConfirmButtonText

获得/设置 确认按钮显示文字 默认为 确定

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

Property Value

string

ConfirmIcon

获得/设置 确认框图标

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

Property Value

string

Content

获得/设置 显示文字

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

Property Value

string

CustomClass

获得/设置 自定义样式 默认 null

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

Property Value

string

Remarks

由 data-bs-custom-class 实现

获得/设置 是否为 A 标签 默认 false 使用 button 渲染

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

Property Value

bool

OnBeforeClick

获得/设置 点击确认弹窗前回调方法 返回真时弹出弹窗 返回假时不弹出 默认 null

[Parameter]
public Func<Task<bool>>? OnBeforeClick { get; set; }

Property Value

Func<Task<bool>>

OnClose

获得/设置 点击关闭时回调方法

[Parameter]
public Func<Task>? OnClose { get; set; }

Property Value

Func<Task>

OnConfirm

获得/设置 点击确认时回调方法

[Parameter]
public Func<Task>? OnConfirm { get; set; }

Property Value

Func<Task>

Placement

获得/设置 弹窗显示位置

[Parameter]
public Placement Placement { get; set; }

Property Value

Placement

PlacementString

弹窗位置字符串

protected override string? PlacementString { get; }

Property Value

string

ShowCloseButton

获得/设置 是否显示关闭按钮

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

Property Value

bool

ShowConfirmButton

获得/设置 是否显示确认按钮

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

Property Value

bool

ShowShadow

获得/设置 是否显示阴影 默认 true

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

Property Value

bool

Title

获得/设置 显示标题

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

Property Value

string

Trigger

获得/设置 弹窗触发方式 默认 click

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

Property Value

string

TriggerString

Trigger 字符串

protected override string? TriggerString { get; }

Property Value

string

Methods

OnParametersSet()

OnParametersSet 方法

protected override void OnParametersSet()