Skip to content

Commit 6831db0

Browse files
authored
doc(Table): missing localization for table custom filter (#7592)
1 parent facf7cb commit 6831db0

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4885,7 +4885,12 @@
48854885
"SortListTitle": "Multi-column sort",
48864886
"TablesFilterDesc": "Filter to quickly find the data you want to see; sort to quickly find or compare data.",
48874887
"TablesFilterDescLi1": "Filters a column of data to specify the column to be filtered by specifying the <code>filterable</code> property of the column",
4888-
"TablesFilterDescLi2": "Sort a column of data, specify the column to be sorted by specifying the <code>Sortable</code> property of the column, change the collation by multiple clicks"
4888+
"TablesFilterDescLi2": "Sort a column of data, specify the column to be sorted by specifying the <code>Sortable</code> property of the column, change the collation by multiple clicks",
4889+
"TablesFilterTemplateDescription": "<p><code>The FilterTemplate</code> type is <code>RenderFragment</code> <span>its value is a custom component, and the component must inherit</span> <code>the filterBase</code> In this case, the last column in this case<b>, the Quantity column</b>, uses the <code>custom component by filtering the template CustomerFilter</code> <a href=\"{0}\" target=\"_blank\">[portal] CustomerFilter component source code</a></p><p class=\"code-label\">Notes:</p><ul class=\"ul-demo\"><li>Custom filter components are wrapped with <code>FilterProvider</code>, and <code>FilterProvider</code> must be under the <code>FilterTemplate</code> node</li><li>Filters can be fine-tuned through the parameters of the <code>FilterProvider</code> component; for example, by setting <code>ShowMoreButton</code> to control whether the <b>+ -</b> symbol is displayed</li><li>Before <code>v9.6.2</code>, use <code>OnFilterValueChanged</code> to trigger the filter callback. After refactoring, use <code>OnFilterAsync</code> to trigger the filter callback method.</li></ul-demo>",
4890+
"CustomerFilterItem1": "All",
4891+
"CustomerFilterItem2": "Greater than 10",
4892+
"CustomerFilterItem3": "Greater than 50",
4893+
"CustomerFilterItem4": "Greater than 80"
48894894
},
48904895
"BootstrapBlazor.Server.Components.Samples.Table.TablesFixedColumn": {
48914896
"TablesFixedColHeaderDescription": "In this example, set <code>Name</code> <code>Education</code> <code>Count</code> <code>Complete</code> The first two columns and the last column are fixed columns, and the middle columns are scrolled horizontally",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4885,7 +4885,12 @@
48854885
"SortListTitle": "多列排序",
48864886
"TablesFilterDesc": "筛选可快速查找到自己想看的数据;排序可快速查找或对比数据。",
48874887
"TablesFilterDescLi1": "对某一列数据进行筛选,通过指定列的 <code>Filterable</code> 属性来指定需要筛选的列",
4888-
"TablesFilterDescLi2": "对某一列数据进行排序,通过指定列的 <code>Sortable</code> 属性来指定需要排序的列,通过多次点击更改排序规则"
4888+
"TablesFilterDescLi2": "对某一列数据进行排序,通过指定列的 <code>Sortable</code> 属性来指定需要排序的列,通过多次点击更改排序规则",
4889+
"TablesFilterTemplateDescription": "<p><code>FilterTemplate</code> 类型为 <code>RenderFragment</code> <span>其值为自定义组件,组件必须继承</span> <code>FilterBase</code> 本例中最后一列 <b>数量列</b> 通过筛选模板使用自定义组件 <code>CustomerFilter</code> <a href=\"{0}\" target=\"_blank\">[传送门] CustomerFilter 组件源码</a></p><p class=\"code-label\">注意事项:</p><ul class=\"ul-demo\"><li>自定义过滤组件使用 <code>FilterProvider</code> 包裹,<code>FilterProvider</code>必须在 <code>FilterTemplate</code> 节点下</li><li>通过 <code>FilterProvider</code> 组件的参数可微调过滤器;例如通过设置 <code>ShowMoreButton</code> 控制是否显示 <b>+ -</b> 符号</li><li><code>v9.6.2</code> 版本前,使用 <code>OnFilterValueChanged</code> 触发过滤回调,重构后使用 <code>OnFilterAsync</code> 触发过滤回调方法</li></ul-demo>",
4890+
"CustomerFilterItem1": "全部",
4891+
"CustomerFilterItem2": "大于 10",
4892+
"CustomerFilterItem3": "大于 50",
4893+
"CustomerFilterItem4": "大于 80"
48894894
},
48904895
"BootstrapBlazor.Server.Components.Samples.Table.TablesFixedColumn": {
48914896
"TablesFixedColHeaderDescription": "本例中设置 <code>Name</code> <code>Education</code> <code>Count</code> <code>Complete</code> 前两列和最后一列为固定列,中间各列进行水平滚动,本例中设置 <code>AllowResize=\"true\"</code> 固定列也可以调整宽度",

0 commit comments

Comments
 (0)