Table of Contents

Class Timer

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

Timer 组件

public class Timer : CircleBase, IComponent, IHandleAfterRender, IHandleEvent, IAsyncDisposable
Inheritance
Timer
Implements
Inherited Members
Extension Methods

Constructors

Timer()

public Timer()

Properties

CancelText

获得/设置 取消按钮文字

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

Property Value

string

ClassString

获得 组件样式字符串

protected override string? ClassString { get; }

Property Value

string

Icon

获得/设置 Alert 图标

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

Property Value

string

IsVibrate

获得/设置 倒计时结束时设备震动

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

Property Value

bool

OnCancel

获得/设置 取消时回调委托

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

Property Value

Func<Task>

OnTimeout

获得/设置 倒计时结束时回调委托

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

Property Value

Func<Task>

PauseText

获得/设置 暂停按钮文字

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

Property Value

string

ResumeText

获得/设置 继续按钮文字

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

Property Value

string

StarText

获得/设置 取消按钮文字

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

Property Value

string

StrokeWidth

获得/设置 进度条宽度 默认为 2

[Parameter]
public override int StrokeWidth { get; set; }

Property Value

int

Value

获得/设置 当前值

[Parameter]
public TimeSpan Value { get; set; }

Property Value

TimeSpan

Width

获得/设置 文件预览框宽度

[Parameter]
public override int Width { get; set; }

Property Value

int

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

DisposeAsync(bool)

Dispose 方法

protected override ValueTask DisposeAsync(bool disposing)

Parameters

disposing bool

Returns

ValueTask

OnAfterRenderAsync(bool)

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender bool

Returns

Task

OnParametersSet()

OnInitialized 方法

protected override void OnParametersSet()