|
6 | 6 | namespace BootstrapBlazor.Components; |
7 | 7 |
|
8 | 8 | /// <summary> |
9 | | -/// ITableHeader 接口 |
| 9 | +/// ITableHeader interface |
10 | 10 | /// </summary> |
11 | 11 | public interface ITableColumn : IEditorItem |
12 | 12 | { |
13 | 13 | /// <summary> |
14 | | - /// 获得/设置 是否允许排序 默认为 null |
| 14 | + /// Gets or sets whether sorting is allowed. Default is null. |
15 | 15 | /// </summary> |
16 | 16 | bool? Sortable { get; set; } |
17 | 17 |
|
18 | 18 | /// <summary> |
19 | | - /// 获得/设置 是否为默认排序列 默认为 false |
| 19 | + /// Gets or sets whether it is the default sort column. Default is false. |
20 | 20 | /// </summary> |
21 | 21 | bool DefaultSort { get; set; } |
22 | 22 |
|
23 | 23 | /// <summary> |
24 | | - /// 获得/设置 默认排序规则 默认为 SortOrder.Unset |
| 24 | + /// Gets or sets the default sort order. Default is SortOrder.Unset. |
25 | 25 | /// </summary> |
26 | 26 | SortOrder DefaultSortOrder { get; set; } |
27 | 27 |
|
28 | 28 | /// <summary> |
29 | | - /// 获得/设置 是否允许过滤数据 默认为 null |
| 29 | + /// Gets or sets whether data filtering is allowed. Default is null. |
30 | 30 | /// </summary> |
31 | 31 | bool? Filterable { get; set; } |
32 | 32 |
|
33 | 33 | /// <summary> |
34 | | - /// 获得/设置 是否参与搜索 默认为 null |
| 34 | + /// Gets or sets whether the column participates in search. Default is null. |
35 | 35 | /// </summary> |
36 | 36 | bool? Searchable { get; set; } |
37 | 37 |
|
38 | 38 | /// <summary> |
39 | | - /// 获得/设置 列宽 |
| 39 | + /// Gets or sets the column width. |
40 | 40 | /// </summary> |
41 | 41 | int? Width { get; set; } |
42 | 42 |
|
43 | 43 | /// <summary> |
44 | | - /// 获得/设置 是否固定本列 默认 false 不固定 |
| 44 | + /// Gets or sets whether the column is fixed. Default is false. |
45 | 45 | /// </summary> |
46 | 46 | bool Fixed { get; set; } |
47 | 47 |
|
48 | 48 | /// <summary> |
49 | | - /// 获得/设置 本列是否允许换行 默认为 null |
| 49 | + /// Gets or sets whether text wrapping is allowed in this column. Default is null. |
50 | 50 | /// </summary> |
51 | 51 | bool? TextWrap { get; set; } |
52 | 52 |
|
53 | 53 | /// <summary> |
54 | | - /// 获得/设置 本列文本超出省略 默认为 null |
| 54 | + /// Gets or sets whether text overflow is ellipsis in this column. Default is null. |
55 | 55 | /// </summary> |
56 | 56 | bool? TextEllipsis { get; set; } |
57 | 57 |
|
58 | 58 | /// <summary> |
59 | | - /// 获得/设置 是否表头允许折行 默认 false 不折行 |
| 59 | + /// Gets or sets whether the header text is allowed to wrap. Default is false. |
60 | 60 | /// </summary> |
61 | 61 | bool HeaderTextWrap { get; set; } |
62 | 62 |
|
63 | 63 | /// <summary> |
64 | | - /// 获得/设置 是否表头显示 Tooltip 默认 false 不显示 可配合 <see cref="HeaderTextEllipsis"/> 使用 设置 <see cref="HeaderTextWrap"/> 为 true 时本参数不生效 |
| 64 | + /// Gets or sets whether the header shows a tooltip. Default is false. Can be used with <see cref="HeaderTextEllipsis"/>. This parameter is not effective when <see cref="HeaderTextWrap"/> is set to true. |
65 | 65 | /// </summary> |
66 | 66 | bool ShowHeaderTooltip { get; set; } |
67 | 67 |
|
68 | 68 | /// <summary> |
69 | | - /// 获得/设置 是否表头 Tooltip 内容 |
| 69 | + /// Gets or sets the header tooltip content. |
70 | 70 | /// </summary> |
71 | 71 | string? HeaderTextTooltip { get; set; } |
72 | 72 |
|
73 | 73 | /// <summary> |
74 | | - /// 获得/设置 是否表头溢出时截断 默认 false 不截断 可配合 <see cref="HeaderTextTooltip"/> 使用 设置 <see cref="HeaderTextWrap"/> 为 true 时本参数不生效 |
| 74 | + /// Gets or sets whether the header text is truncated when overflowing. Default is false. Can be used with <see cref="HeaderTextTooltip"/>. This parameter is not effective when <see cref="HeaderTextWrap"/> is set to true. |
75 | 75 | /// </summary> |
76 | 76 | bool HeaderTextEllipsis { get; set; } |
77 | 77 |
|
78 | 78 | /// <summary> |
79 | | - /// 获得/设置 列 td 自定义样式 默认为 null 未设置 |
| 79 | + /// Gets or sets the custom CSS class for the column td. Default is null. |
80 | 80 | /// </summary> |
81 | 81 | string? CssClass { get; set; } |
82 | 82 |
|
83 | 83 | /// <summary> |
84 | | - /// 显示节点阈值 默认值 BreakPoint.None 未设置 |
| 84 | + /// Gets or sets the breakpoint at which the column is shown. Default is BreakPoint.None. |
85 | 85 | /// </summary> |
86 | 86 | BreakPoint ShownWithBreakPoint { get; set; } |
87 | 87 |
|
88 | 88 | /// <summary> |
89 | | - /// 获得/设置 是否可以拷贝列 默认 null 不可以 |
| 89 | + /// Gets or sets whether the column can be copied. Default is null. |
90 | 90 | /// </summary> |
91 | 91 | bool? ShowCopyColumn { get; set; } |
92 | 92 |
|
93 | 93 | /// <summary> |
94 | | - /// 获得/设置 显示模板 |
| 94 | + /// Gets or sets the display template. |
95 | 95 | /// </summary> |
96 | 96 | RenderFragment<object>? Template { get; set; } |
97 | 97 |
|
98 | 98 | /// <summary> |
99 | | - /// 获得/设置 搜索模板 |
| 99 | + /// Gets or sets the search template. |
100 | 100 | /// </summary> |
101 | 101 | RenderFragment<object>? SearchTemplate { get; set; } |
102 | 102 |
|
103 | 103 | /// <summary> |
104 | | - /// 获得/设置 过滤模板 |
| 104 | + /// Gets or sets the filter template. |
105 | 105 | /// </summary> |
106 | 106 | RenderFragment? FilterTemplate { get; set; } |
107 | 107 |
|
108 | 108 | /// <summary> |
109 | | - /// 获得/设置 表头模板 |
| 109 | + /// Gets or sets the header template. |
110 | 110 | /// </summary> |
111 | 111 | RenderFragment<ITableColumn>? HeaderTemplate { get; set; } |
112 | 112 |
|
113 | 113 | /// <summary> |
114 | | - /// 获得/设置 工具栏模板 默认 null |
| 114 | + /// Gets or sets the toolbox template. Default is null. |
115 | 115 | /// </summary> |
116 | 116 | RenderFragment<ITableColumn>? ToolboxTemplate { get; set; } |
117 | 117 |
|
118 | 118 | /// <summary> |
119 | | - /// 获得/设置 列过滤器 |
| 119 | + /// Gets or sets the column filter. |
120 | 120 | /// </summary> |
121 | 121 | IFilter? Filter { get; set; } |
122 | 122 |
|
123 | 123 | /// <summary> |
124 | | - /// 获得/设置 格式化字符串 如时间类型设置 yyyy-MM-dd |
| 124 | + /// Gets or sets the format string, such as "yyyy-MM-dd" for date types. |
125 | 125 | /// </summary> |
126 | 126 | string? FormatString { get; set; } |
127 | 127 |
|
128 | 128 | /// <summary> |
129 | | - /// 获得/设置 列格式化回调委托 <see cref="TableColumnContext{TItem, TValue}"/> |
| 129 | + /// Gets or sets the column format callback delegate <see cref="TableColumnContext{TItem, TValue}"/>. |
130 | 130 | /// </summary> |
131 | 131 | Func<object?, Task<string?>>? Formatter { get; set; } |
132 | 132 |
|
133 | 133 | /// <summary> |
134 | | - /// 获得/设置 文字对齐方式 默认为 null 使用 Alignment.None |
| 134 | + /// Gets or sets the text alignment. Default is null, using Alignment.None. |
135 | 135 | /// </summary> |
136 | 136 | Alignment? Align { get; set; } |
137 | 137 |
|
138 | 138 | /// <summary> |
139 | | - /// 获得/设置 字段鼠标悬停提示 默认为 null 使用 false 值 |
| 139 | + /// Gets or sets whether to show tooltips on mouse hover. Default is null, using false value. |
140 | 140 | /// </summary> |
141 | 141 | bool? ShowTips { get; set; } |
142 | 142 |
|
143 | 143 | /// <summary> |
144 | | - /// 获得/设置 鼠标悬停提示自定义内容回调委托 默认 null 使用当前值 |
| 144 | + /// Gets or sets the custom tooltip content callback delegate. Default is null, using the current value. |
145 | 145 | /// </summary> |
146 | 146 | Func<object?, Task<string?>>? GetTooltipTextCallback { get; set; } |
147 | 147 |
|
148 | 148 | /// <summary> |
149 | | - /// 获得/设置 单元格回调方法 |
| 149 | + /// Gets or sets the cell render callback method. |
150 | 150 | /// </summary> |
151 | 151 | Action<TableCellArgs>? OnCellRender { get; set; } |
152 | 152 |
|
153 | 153 | /// <summary> |
154 | | - /// 获得/设置 是否为 MarkupString 默认 false |
| 154 | + /// Gets or sets whether the column is a MarkupString. Default is false. |
155 | 155 | /// </summary> |
156 | 156 | bool IsMarkupString { get; set; } |
157 | 157 |
|
158 | 158 | /// <summary> |
159 | | - /// 获得/设置 新建时是否为必填项 默认为 null |
| 159 | + /// Gets or sets whether the column is required when adding a new item. Default is null. |
160 | 160 | /// </summary> |
161 | 161 | bool? IsRequiredWhenAdd { get; set; } |
162 | 162 |
|
163 | 163 | /// <summary> |
164 | | - /// 获得/设置 编辑时是否为必填项 默认为 null |
| 164 | + /// Gets or sets whether the column is required when editing an item. Default is null. |
165 | 165 | /// </summary> |
166 | 166 | bool? IsRequiredWhenEdit { get; set; } |
167 | 167 |
|
168 | 168 | /// <summary> |
169 | | - /// 获得/设置 新建时此列只读 默认为 null 使用 <see cref="IEditorItem.Readonly"/> 值 |
| 169 | + /// Gets or sets whether the column is read-only when adding a new item. Default is null, using the <see cref="IEditorItem.Readonly"/> value. |
170 | 170 | /// </summary> |
171 | 171 | bool? IsReadonlyWhenAdd { get; set; } |
172 | 172 |
|
173 | 173 | /// <summary> |
174 | | - /// 获得/设置 编辑时此列只读 默认为 null 使用 <see cref="IEditorItem.Readonly"/> 值 |
| 174 | + /// Gets or sets whether the column is read-only when editing an item. Default is null, using the <see cref="IEditorItem.Readonly"/> value. |
175 | 175 | /// </summary> |
176 | 176 | bool? IsReadonlyWhenEdit { get; set; } |
177 | 177 |
|
178 | 178 | /// <summary> |
179 | | - /// 获得/设置 当前编辑项是否显示 默认为 null 未设置时为 true |
| 179 | + /// Gets or sets whether the current edit item is visible. Default is null, using true value. |
180 | 180 | /// </summary> |
181 | 181 | bool? Visible { get; set; } |
182 | 182 |
|
183 | 183 | /// <summary> |
184 | | - /// 获得/设置 新建时是否此列显示 默认为 null 使用 <see cref="Visible"/> 值 |
| 184 | + /// Gets or sets whether the column is visible when adding a new item. Default is null, using the <see cref="Visible"/> value. |
185 | 185 | /// </summary> |
186 | 186 | bool? IsVisibleWhenAdd { get; set; } |
187 | 187 |
|
188 | 188 | /// <summary> |
189 | | - /// 获得/设置 编辑时是否此列显示 默认为 null 使用 <see cref="Visible"/> 值 |
| 189 | + /// Gets or sets whether the column is visible when editing an item. Default is null, using the <see cref="Visible"/> value. |
190 | 190 | /// </summary> |
191 | 191 | bool? IsVisibleWhenEdit { get; set; } |
192 | 192 |
|
193 | 193 | /// <summary> |
194 | | - /// 获得/设置 自定义搜索逻辑 |
| 194 | + /// Gets or sets the custom search logic. |
195 | 195 | /// </summary> |
196 | 196 | Func<ITableColumn, string?, SearchFilterAction>? CustomSearch { get; set; } |
197 | 197 | } |
0 commit comments