Table of Contents

Interface ITableColumn

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

ITableHeader 接口

public interface ITableColumn : IEditorItem
Inherited Members
Extension Methods

Properties

Align

获得/设置 文字对齐方式 默认为 null 使用 Alignment.None

Alignment? Align { get; set; }

Property Value

Alignment?

CssClass

获得/设置 列 td 自定义样式 默认为 null 未设置

string? CssClass { get; set; }

Property Value

string

CustomSearch

获得/设置 自定义搜索逻辑

Func<ITableColumn, string?, SearchFilterAction>? CustomSearch { get; set; }

Property Value

Func<ITableColumn, string, SearchFilterAction>

DefaultSort

获得/设置 是否为默认排序列 默认为 false

bool DefaultSort { get; set; }

Property Value

bool

DefaultSortOrder

获得/设置 默认排序规则 默认为 SortOrder.Unset

SortOrder DefaultSortOrder { get; set; }

Property Value

SortOrder

Filter

获得/设置 列过滤器

IFilter? Filter { get; set; }

Property Value

IFilter

FilterTemplate

获得/设置 过滤模板

RenderFragment? FilterTemplate { get; set; }

Property Value

RenderFragment

Filterable

获得/设置 是否允许过滤数据 默认为 null

bool? Filterable { get; set; }

Property Value

bool?

Fixed

获得/设置 是否固定本列 默认 false 不固定

bool Fixed { get; set; }

Property Value

bool

FormatString

获得/设置 格式化字符串 如时间类型设置 yyyy-MM-dd

string? FormatString { get; set; }

Property Value

string

Formatter

获得/设置 列格式化回调委托

Func<object?, Task<string?>>? Formatter { get; set; }

Property Value

Func<object, Task<string>>

GetTooltipTextCallback

获得/设置 鼠标悬停提示自定义内容回调委托 默认 null 使用当前值

Func<object?, Task<string?>>? GetTooltipTextCallback { get; set; }

Property Value

Func<object, Task<string>>

HeaderTemplate

获得/设置 表头模板

RenderFragment<ITableColumn>? HeaderTemplate { get; set; }

Property Value

RenderFragment<ITableColumn>

HeaderTextEllipsis

获得/设置 是否表头溢出时截断 默认 false 不截断 可配合 HeaderTextTooltip 使用 设置 HeaderTextWrap 为 true 时本参数不生效

bool HeaderTextEllipsis { get; set; }

Property Value

bool

HeaderTextTooltip

获得/设置 是否表头 Tooltip 内容

string? HeaderTextTooltip { get; set; }

Property Value

string

HeaderTextWrap

获得/设置 是否表头允许折行 默认 false 不折行

bool HeaderTextWrap { get; set; }

Property Value

bool

IsMarkupString

获得/设置 是否为 MarkupString 默认 false

bool IsMarkupString { get; set; }

Property Value

bool

IsReadonlyWhenAdd

获得/设置 新建时此列只读 默认为 null 使用 Readonly

bool? IsReadonlyWhenAdd { get; set; }

Property Value

bool?

IsReadonlyWhenEdit

获得/设置 编辑时此列只读 默认为 null 使用 Readonly

bool? IsReadonlyWhenEdit { get; set; }

Property Value

bool?

IsVisibleWhenAdd

获得/设置 新建时是否此列显示 默认为 null 使用 Visible

bool? IsVisibleWhenAdd { get; set; }

Property Value

bool?

IsVisibleWhenEdit

获得/设置 编辑时是否此列显示 默认为 null 使用 Visible

bool? IsVisibleWhenEdit { get; set; }

Property Value

bool?

OnCellRender

获得/设置 单元格回调方法

Action<TableCellArgs>? OnCellRender { get; set; }

Property Value

Action<TableCellArgs>

SearchTemplate

获得/设置 搜索模板

RenderFragment<object>? SearchTemplate { get; set; }

Property Value

RenderFragment<object>

Searchable

获得/设置 是否参与搜索 默认为 null

bool? Searchable { get; set; }

Property Value

bool?

ShowCopyColumn

获得/设置 是否可以拷贝列 默认 null 不可以

bool? ShowCopyColumn { get; set; }

Property Value

bool?

ShowHeaderTooltip

获得/设置 是否表头显示 Tooltip 默认 false 不显示 可配合 HeaderTextEllipsis 使用 设置 HeaderTextWrap 为 true 时本参数不生效

bool ShowHeaderTooltip { get; set; }

Property Value

bool

ShowTips

获得/设置 字段鼠标悬停提示 默认为 null 使用 false 值

bool? ShowTips { get; set; }

Property Value

bool?

ShownWithBreakPoint

显示节点阈值 默认值 BreakPoint.None 未设置

BreakPoint ShownWithBreakPoint { get; set; }

Property Value

BreakPoint

Sortable

获得/设置 是否允许排序 默认为 null

bool? Sortable { get; set; }

Property Value

bool?

Template

获得/设置 显示模板

RenderFragment<object>? Template { get; set; }

Property Value

RenderFragment<object>

TextEllipsis

获得/设置 本列文本超出省略 默认为 null

bool? TextEllipsis { get; set; }

Property Value

bool?

TextWrap

获得/设置 本列是否允许换行 默认为 null

bool? TextWrap { get; set; }

Property Value

bool?

ToolboxTemplate

获得/设置 工具栏模板 默认 null

RenderFragment<ITableColumn>? ToolboxTemplate { get; set; }

Property Value

RenderFragment<ITableColumn>

Visible

获得/设置 当前编辑项是否显示 默认为 null 未设置时为 true

bool? Visible { get; set; }

Property Value

bool?

Width

获得/设置 列宽

int? Width { get; set; }

Property Value

int?