Class ExportPdfButtonOptions
- Namespace
- BootstrapBlazor.Components
- Assembly
- BootstrapBlazor.dll
ExportPdfButtonOptions 配置类
public class ExportPdfButtonOptions
- Inheritance
-
ExportPdfButtonOptions
- Inherited Members
- Extension Methods
Constructors
ExportPdfButtonOptions()
public ExportPdfButtonOptions()
Properties
AutoDownload
获得/设置 是否自动下载 Pdf 默认为 true
public bool AutoDownload { get; set; }
Property Value
Color
获得/设置 导出 Pdf 按钮颜色 默认 Color.Primary
public Color Color { get; set; }
Property Value
ElementId
获得/设置 导出 Pdf 元素 Id 默认为 null
public string? ElementId { get; set; }
Property Value
FileName
获得/设置 导出 Pdf 文件名 默认为 null 未设置时使用 pdf-时间戳.pdf
public string? FileName { get; set; }
Property Value
Icon
获得/设置 导出 Pdf 按钮图标 未设置 取当前图标主题下导出 Pdf 图标
public string? Icon { get; set; }
Property Value
IsAsync
获得/设置 是否异步导出 默认为 true
public bool IsAsync { get; set; }
Property Value
OnAfterDownload
获得/设置 下载 Pdf 之后回调委托 默认为 null
public Func<string, Task>? OnAfterDownload { get; set; }
Property Value
OnBeforeDownload
获得/设置 下载 Pdf 之前回调委托 默认为 null
public Func<Stream, Task>? OnBeforeDownload { get; set; }
Property Value
OnBeforeExport
获得/设置 导出 Pdf 之前回调委托 默认为 null
public Func<Task>? OnBeforeExport { get; set; }
Property Value
ScriptTags
获得/设置 导出 Pdf 所需脚本文件集合 默认为 null
public List<string>? ScriptTags { get; set; }
Property Value
Selector
获得/设置 导出 Pdf 选择器 默认为 null
public string? Selector { get; set; }
Property Value
StyleTags
获得/设置 导出 Pdf 所需样式表文件集合 默认为 null
public List<string>? StyleTags { get; set; }
Property Value
Text
获得/设置 导出 Pdf 按钮显示文字 默认为资源文件中 导出 Pdf 文字
public string? Text { get; set; }