Class AutoGenerateColumnAttribute
- Namespace
- BootstrapBlazor.Components
- Assembly
- BootstrapBlazor.dll
AutoGenerateColumn 标签类,用于 Table<TItem> 标识自动生成列
[AttributeUsage(AttributeTargets.Property)]
public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColumn, IEditorItem
- Inheritance
-
AutoGenerateColumnAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
AutoGenerateColumnAttribute()
public AutoGenerateColumnAttribute()
Properties
Cols
获得/设置 控件的占列数值范围 1-12
public int Cols { get; set; }
Property Value
ComponentType
获得/设置 组件类型 默认为 null
public Type? ComponentType { get; set; }
Property Value
CssClass
获得/设置 列 td 自定义样式 默认为 null 未设置
public string? CssClass { get; set; }
Property Value
DefaultSort
获得/设置 是否为默认排序列 默认为 false
public bool DefaultSort { get; set; }
Property Value
DefaultSortOrder
获得/设置 是否为默认排序规则 默认为 SortOrder.Unset
public SortOrder DefaultSortOrder { get; set; }
Property Value
Fixed
获得/设置 是否固定本列 默认 false 不固定
public bool Fixed { get; set; }
Property Value
FormatString
获得/设置 格式化字符串 如时间类型设置 yyyy-MM-dd
public string? FormatString { get; set; }
Property Value
Formatter
获得/设置 列格式化回调委托
public Func<object?, Task<string?>>? Formatter { get; set; }
Property Value
GroupName
获得/设置 当前属性分组
public string? GroupName { get; set; }
Property Value
GroupOrder
获得/设置 当前属性分组排序 默认 0
public int GroupOrder { get; set; }
Property Value
HeaderTextEllipsis
获得/设置 是否表头溢出时截断 默认 false 不截断 可配合 HeaderTextTooltip 使用 设置 HeaderTextWrap 为 true 时本参数不生效
public bool HeaderTextEllipsis { get; set; }
Property Value
HeaderTextTooltip
获得/设置 是否表头 Tooltip 内容
public string? HeaderTextTooltip { get; set; }
Property Value
HeaderTextWrap
获得/设置 是否表头允许折行 默认 false 不折行
public bool HeaderTextWrap { get; set; }
Property Value
IsMarkupString
获得/设置 是否为 MarkupString 默认 false
public bool IsMarkupString { get; set; }
Property Value
IsPopover
获得/设置 是否使用 Popover 渲染下拉框 默认 false
public bool IsPopover { get; set; }
Property Value
IsReadonlyWhenAdd
public bool IsReadonlyWhenAdd { get; set; }
Property Value
IsReadonlyWhenEdit
public bool IsReadonlyWhenEdit { get; set; }
Property Value
IsVisibleWhenAdd
public bool IsVisibleWhenAdd { get; set; }
Property Value
IsVisibleWhenEdit
public bool IsVisibleWhenEdit { get; set; }
Property Value
LookupServiceData
获得/设置 ILookupService 服务获取 Lookup 数据集合键值自定义数据,通过 LookupServiceKey 指定键值
public object? LookupServiceData { get; set; }
Property Value
LookupServiceKey
获得/设置 ILookupService 服务获取 Lookup 数据集合键值 常用于外键自动转换为名称操作,可以通过 LookupServiceData 传递自定义数据
public string? LookupServiceKey { get; set; }
Property Value
LookupStringComparison
获得/设置 字典数据源字符串比较规则 默认 OrdinalIgnoreCase 大小写不敏感
public StringComparison LookupStringComparison { get; set; }
Property Value
Order
获得/设置 显示顺序 ,规则如下:
>0时排前面,1,2,3... =0时排中间(默认) <0时排后面,...-3,-2,-1public int Order { get; set; }
Property Value
PlaceHolder
获得/设置 placeholder 文本 默认为 null
public string? PlaceHolder { get; set; }
Property Value
PropertyType
获得 属性类型
public Type? PropertyType { get; }
Property Value
Rows
获得/设置 行数
public int Rows { get; set; }
Property Value
ShowHeaderTooltip
获得/设置 是否表头显示 Tooltip 默认 false 不显示 可配合 HeaderTextEllipsis 使用 设置 HeaderTextWrap 为 true 时本参数不生效
public bool ShowHeaderTooltip { get; set; }
Property Value
ShowLabelTooltip
获得/设置 是否显示标签 Tooltip 多用于标签文字过长导致裁减时使用 默认 false
public bool ShowLabelTooltip { get; set; }
Property Value
ShowSearchWhenSelect
获得/设置 字段数据源下拉框是否显示搜索栏 默认 false 不显示
public bool ShowSearchWhenSelect { get; set; }
Property Value
ShownWithBreakPoint
获得/设置 显示节点阈值 默认值 BreakPoint.None 未设置
public BreakPoint ShownWithBreakPoint { get; set; }
Property Value
SkipValidate
获得/设置 是否不进行验证 默认为 false
public bool SkipValidate { get; set; }
Property Value
Step
获得/设置 步长 默认为 null 设置 any 时忽略检查
public string? Step { get; set; }
Property Value
Text
获得/设置 当前属性显示文字 列头或者标签名称
public string? Text { get; set; }
Property Value
Width
获得/设置 列宽
public int Width { get; set; }
Property Value
Methods
GetDisplayName()
获取绑定字段显示名称方法
public virtual string GetDisplayName()
Returns
GetFieldName()
获取绑定字段信息方法
public string GetFieldName()