Table of Contents

Class CountButton

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

CountButton 组件

public class CountButton : Button, IComponent, IHandleAfterRender, IHandleEvent, IAsyncDisposable
Inheritance
CountButton
Implements
Inherited Members
Extension Methods

Constructors

CountButton()

public CountButton()

Properties

Count

倒计时数量 默认 5 秒

[Parameter]
public int Count { get; set; }

Property Value

int

CountText

倒计时文本 默认 null 使用 Text 参数

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

Property Value

string

CountTextCallback

倒计时格式化回调方法

[Parameter]
public Func<int, string>? CountTextCallback { get; set; }

Property Value

Func<int, string>

Methods

HandlerClick()

处理点击方法

protected override Task HandlerClick()

Returns

Task

SetClickHandler()

设置 OnClickButton 方法

protected override void SetClickHandler()