Table of Contents

Class ExportPdfButton

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

导出 Pdf 按钮

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

Constructors

ExportPdfButton()

public ExportPdfButton()

Properties

AutoDownload

获得/设置 是否自动下载 Pdf 默认为 false

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

Property Value

bool

ElementId

获得/设置 导出 Pdf 元素 Id 默认为 null

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

Property Value

string

FileName

获得/设置 导出 Pdf 文件名 默认为 null 未设置时使用 pdf-时间戳.pdf

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

Property Value

string

OnAfterDownload

获得/设置 下载 Pdf 之后回调委托 默认为 null

[Parameter]
public Func<string, Task>? OnAfterDownload { get; set; }

Property Value

Func<string, Task>

OnBeforeDownload

获得/设置 下载 Pdf 之前回调委托 默认为 null

[Parameter]
public Func<Stream, Task>? OnBeforeDownload { get; set; }

Property Value

Func<Stream, Task>

OnBeforeExport

获得/设置 导出 Pdf 之前回调委托 默认为 null

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

Property Value

Func<Task>

ScriptTags

获得/设置 导出 Pdf 所需脚本文件集合 默认为 null

[Parameter]
public List<string>? ScriptTags { get; set; }

Property Value

List<string>

Selector

获得/设置 导出 Pdf 选择器 默认为 null

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

Property Value

string

StyleTags

获得/设置 导出 Pdf 所需样式表文件集合 默认为 null

[Parameter]
public List<string>? StyleTags { get; set; }

Property Value

List<string>

Methods

HandlerClick()

处理点击方法

protected override Task HandlerClick()

Returns

Task

OnParametersSet()

OnParametersSet 方法

protected override void OnParametersSet()