Table of Contents

Class SweetAlertBody

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll
public class SweetAlertBody : BootstrapComponentBase, IComponent, IHandleAfterRender, IHandleEvent
Inheritance
SweetAlertBody
Implements
Inherited Members
Extension Methods

Constructors

SweetAlertBody()

public SweetAlertBody()

Properties

BodyTemplate

获得/设置 显示内容模板

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

Property Value

RenderFragment

ButtonTemplate

获得/设置 按钮模板

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

Property Value

RenderFragment

CancelButtonText

获得/设置 取消按钮文字 默认为 取消

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

Property Value

string

Category

获得/设置 弹窗类别默认为 Success

[Parameter]
public SwalCategory Category { get; set; }

Property Value

SwalCategory

CloseButtonIcon

获得/设置 关闭按钮图标

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

Property Value

string

CloseButtonText

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

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

Property Value

string

ConfirmButtonIcon

获得/设置 确认按钮图标

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

Property Value

string

ConfirmButtonText

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

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

Property Value

string

Content

获得/设置 显示内容

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

Property Value

string

FooterTemplate

获得/设置 Footer 模板

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

Property Value

RenderFragment

IsConfirm

获得/设置 是否为确认弹窗模式 默认为 false

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

Property Value

bool

OnCloseAsync

获得/设置 关闭按钮回调方法

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

Property Value

Func<Task>

OnConfirmAsync

获得/设置 确认按钮回调方法

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

Property Value

Func<Task>

ShowClose

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

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

Property Value

bool

ShowFooter

获得/设置 是否显示 Footer 默认 false 不显示

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

Property Value

bool

Title

获得/设置 显示标题

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

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnParametersSet()

protected override void OnParametersSet()