Skip to content

Commit a7729bc

Browse files
committed
doc: 更新参数文档
1 parent 434f507 commit a7729bc

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/BootstrapBlazor.Server/Components/Samples/Selects.razor.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,14 @@ private AttributeItem[] GetAttributes() =>
357357
DefaultValue = "false"
358358
},
359359
new()
360+
{
361+
Name = "IsFixedSearch",
362+
Description = Localizer["SelectsIsFixedSearch"],
363+
Type = "boolean",
364+
ValueList = "true / false",
365+
DefaultValue = "false"
366+
},
367+
new()
360368
{
361369
Name = "IsDisabled",
362370
Description = Localizer["SelectsIsDisabled"],

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3194,7 +3194,8 @@
31943194
"SelectsGenericDesc": "<p>Please refer to <a href=\"https://github.com/dotnetcore/BootstrapBlazor/issues/4497?wt.mc_id=DT-MVP-5004174\" target=\"_blank\">Design Ideas</a> to understand this feature. In this example, by selecting the drop-down box option, the value obtained is the <code>Foo</code> instance, and the value displayed in the text box on the right is the <code>Address</code> value of the <code>Foo</code> attribute</p><p>In this example, the <code>ValueEqualityComparer</code> and <code>CustomKeyAttribute</code> parameters are not set, and the <code>[Key]</code> tag of the <code>Id</code> attribute of <code>Foo</code> is used for equality judgment</p>",
31953195
"SelectsOnInputChangedCallback": "Callback method for converting input text into corresponding Value in edit mode",
31963196
"TextConvertToValueCallback": "Callback method when input text changes in edit mode",
3197-
"SelectsIsEditable": "Whether editable"
3197+
"SelectsIsEditable": "Whether editable",
3198+
"SelectsIsFixedSearch": "Whether fixed the search box"
31983199
},
31993200
"BootstrapBlazor.Server.Components.Samples.Sliders": {
32003201
"SlidersTitle": "Slider",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3194,7 +3194,8 @@
31943194
"SelectsGenericDesc": "<p>请参考 <a href=\"https://github.com/dotnetcore/BootstrapBlazor/issues/4497?wt.mc_id=DT-MVP-5004174\" target=\"_blank\">设计思路</a> 理解此功能。本例中通过选择下拉框选项,得到的值为 <code>Foo</code> 实例,右侧文本框内显示值为 <code>Foo</code> 属性 <code>Address</code> 值</p><p>本例中未设置 <code>ValueEqualityComparer</code> 以及 <code>CustomKeyAttribute</code> 参数,使用 <code>Foo</code> 属性 <code>Id</code> 的 <code>[Key]</code> 标签进行相等判定</p>",
31953195
"SelectsOnInputChangedCallback": "编辑模式下输入文本转换为对应 Value 回调方法",
31963196
"TextConvertToValueCallback": "编辑模式下输入文本变化时回调方法",
3197-
"SelectsIsEditable": "是否可编辑"
3197+
"SelectsIsEditable": "是否可编辑",
3198+
"SelectsIsFixedSearch": "是否固定搜索栏"
31983199
},
31993200
"BootstrapBlazor.Server.Components.Samples.Sliders": {
32003201
"SlidersTitle": "Slider 滑块",

0 commit comments

Comments
 (0)