diff --git a/src/BootstrapBlazor.Server/Components/Samples/SelectTables.razor b/src/BootstrapBlazor.Server/Components/Samples/SelectTables.razor new file mode 100644 index 00000000000..072653fd5a0 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Samples/SelectTables.razor @@ -0,0 +1,79 @@ +@page "/select-table" + +
Table
",
+ "ColorTitle": "Color",
+ "ColorIntro": "Change component border color by setting Color
",
+ "IsDisabledTitle": "Disabled",
+ "IsDisabledIntro": "When you set the IsDisabled
property value to true
, the component suppresses select",
+ "TemplateTitle": "Value Template",
+ "TemplateIntro": "Present customized display content by customizing the Template
",
+ "AttributeItems": "Data source table display content set",
+ "AttributeTableColumns": "Table Display Column Set",
+ "AttributeColor": "Color",
+ "AttributeIsDisabled": "Is it disabled",
+ "AttributeShowAppendArrow": "Is the right extended small arrow displayed",
+ "AttributeGetTextCallback": "Get display value callback method",
+ "AttributePlaceHolder": "Placeholder",
+ "AttributeHeight": "Table height",
+ "AttributeTemplate": "Display Template",
+ "ValidateFormTitle": "ValidateForm",
+ "ValidateFormIntro": "Intercept data when the value is empty"
}
}
diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json
index 6eae294fc9b..03205895d4c 100644
--- a/src/BootstrapBlazor.Server/Locales/zh-CN.json
+++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json
@@ -4407,6 +4407,7 @@
"Radio": "单选框 Radio",
"Rate": "评分 Rate",
"Select": "选择器 Select",
+ "SelectTable": "表格选择器 SelectTable",
"SelectTree": "树状选择器 SelectTree",
"Slider": "滑块 Slider",
"Switch": "开关 Switch",
@@ -6139,5 +6140,26 @@
"Show": "显示",
"ToolboxCardTitle": "工具栏",
"Translate": "机翻"
+ },
+ "BootstrapBlazor.Server.Components.Samples.SelectTables": {
+ "NormalTitle": "基本功能",
+ "NormalIntro": "适用于候选项信息量比较大,用 Table
呈现信息量",
+ "ColorTitle": "颜色",
+ "ColorIntro": "通过设置 Color
改变组件边框颜色",
+ "IsDisabledTitle": "禁用",
+ "IsDisabledIntro": "设置 IsDisabled
属性值为 true
时,组件禁止选择",
+ "TemplateTitle": "显示模板",
+ "TemplateIntro": "通过自定义 Template
模板,呈现定制化显示内容",
+ "AttributeItems": "数据源表格显示内容集合",
+ "AttributeTableColumns": "设置表格显示列集合",
+ "AttributeColor": "颜色",
+ "AttributeIsDisabled": "是否禁用",
+ "AttributeShowAppendArrow": "是否显示右侧扩展小箭头",
+ "AttributeGetTextCallback": "获得显示值回调方法",
+ "AttributePlaceHolder": "占位符",
+ "AttributeHeight": "表格高度",
+ "AttributeTemplate": "显示模板",
+ "ValidateFormTitle": "客户端验证",
+ "ValidateFormIntro": "下拉框未选择时,点击提交按钮时拦截。"
}
}
diff --git a/src/BootstrapBlazor.Server/docs.json b/src/BootstrapBlazor.Server/docs.json
index 929b62525f4..e6211dd5513 100644
--- a/src/BootstrapBlazor.Server/docs.json
+++ b/src/BootstrapBlazor.Server/docs.json
@@ -125,6 +125,7 @@
"search": "Searches",
"select": "Selects",
"select-tree": "SelectTrees",
+ "select-table": "SelectTables",
"segmented": "Segmenteds",
"slider": "Sliders",
"slide-button": "SlideButtons",
diff --git a/src/BootstrapBlazor/Components/Select/SelectTable.razor b/src/BootstrapBlazor/Components/Select/SelectTable.razor
new file mode 100644
index 00000000000..442d31649f2
--- /dev/null
+++ b/src/BootstrapBlazor/Components/Select/SelectTable.razor
@@ -0,0 +1,42 @@
+@namespace BootstrapBlazor.Components
+@typeparam TItem
+@inherits PopoverDropdownBase