mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-02 03:59:14 +08:00
doc: update the table component some demos namespace (#438)
* update the table component some demos namespace * doc: 重命名资源文件 Localizer 变量 --------- Co-authored-by: Argo Zhang <argo@live.ca>
This commit is contained in:
parent
6bba399b35
commit
09395614b8
@ -73,7 +73,7 @@
|
||||
"TableDialogNormalTips2": "After selecting the product in the pop-up window, click the <code>OK</code> button to close the pop-up window",
|
||||
"TableDialogNormalTips3": "Click the <code>Edit</code> button, since some data are set as read-only, only the <code>Count</code> field can be changed"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Demos.Table.Dialog.TableDialogNormal": {
|
||||
"BootstrapBlazor.Shared.Demos.Table.TablesDialog.TableDialogNormal": {
|
||||
"TableDialogNormalChoose": "Choose",
|
||||
"TableDialogNormalSelectitem": "Select item",
|
||||
"TableDialogNormalSure": "Sure"
|
||||
@ -5162,10 +5162,10 @@
|
||||
"PageInfoTemplateAttr": "The template for custom page info",
|
||||
"PageInfoTextAttr": "Pagination label text"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Demos.Table.Base.TableBaseNormal": {
|
||||
"BootstrapBlazor.Shared.Demos.Table.TablesBase.TableBaseNormal": {
|
||||
"TableBaseNormalRefreshText": "Refresh"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Demos.Table.Base.TableBaseHeaderStyle": {
|
||||
"BootstrapBlazor.Shared.Demos.Table.TablesBase.TableBaseHeaderStyle": {
|
||||
"TableBaseHeaderStyleMode": "Pattern"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Samples.Table.TablesColumn": {
|
||||
@ -5432,7 +5432,7 @@
|
||||
"TablesAutoRefreshControlTitle": "Control whether to update automatically by setting a variable",
|
||||
"TablesAutoRefreshControlIntro": "This example controls whether to automatically update by setting a variable"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Demos.Table.AutoRefresh.TablesAutoRefreshControl": {
|
||||
"BootstrapBlazor.Shared.Demos.Table.TablesAutoRefresh.TablesAutoRefreshControl": {
|
||||
"TablesAutoRefreshControlDescription": "Enable/disable automatic update function by clicking the button",
|
||||
"TablesAutoRefreshControlToggleAuto": "Change Auto",
|
||||
"TablesAutoRefreshControlIsAutoRefresh": "The current value"
|
||||
@ -5561,7 +5561,7 @@
|
||||
"ClassAttr": "Current cell style",
|
||||
"ValueAttr": "Current cell display content"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Demos.Table.Cell.TableCellOnDoubleClickCell": {
|
||||
"BootstrapBlazor.Shared.Demos.Table.TablesCell.TableCellOnDoubleClickCell": {
|
||||
"TableCellOnDoubleClickCellToastTitle": "Double-click cell callback",
|
||||
"TableCellOnDoubleClickCellCurrentCellName": "Current cell name:",
|
||||
"TableCellOnDoubleClickCellCurrentValue": "Current Value:"
|
||||
|
@ -73,7 +73,7 @@
|
||||
"TableDialogNormalTips2": "弹窗中选择产品后点击 <code>确定</code> 按钮关闭弹窗",
|
||||
"TableDialogNormalTips3": "点击 <code>编辑</code> 按钮,由于设置部分数据为只读,只能更改 <code>Count</code> 字段"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Demos.Table.Dialog.TableDialogNormal": {
|
||||
"BootstrapBlazor.Shared.Demos.Table.TablesDialog.TableDialogNormal": {
|
||||
"TableDialogNormalChoose": "选择",
|
||||
"TableDialogNormalSelectitem": "选择项目",
|
||||
"TableDialogNormalSure": "确定"
|
||||
@ -5197,10 +5197,10 @@
|
||||
"PageInfoTemplateAttr": "分页详细信息自定义组件",
|
||||
"PageInfoTextAttr": "分页信息显示文字"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Demos.Table.Base.TableBaseNormal": {
|
||||
"BootstrapBlazor.Shared.Demos.Table.TablesBase.TableBaseNormal": {
|
||||
"TableBaseNormalRefreshText": "刷新"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Demos.Table.Base.TableBaseHeaderStyle": {
|
||||
"BootstrapBlazor.Shared.Demos.Table.TablesBase.TableBaseHeaderStyle": {
|
||||
"TableBaseHeaderStyleMode": "模式"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Samples.Table.TablesColumn": {
|
||||
@ -5448,7 +5448,7 @@
|
||||
"TablesAutoRefreshControlTitle": "通过设置变量控制是否自动更新",
|
||||
"TablesAutoRefreshControlIntro": "本示例通过设置变量控制是否自动更新"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Demos.Table.AutoRefresh.TablesAutoRefreshControl": {
|
||||
"BootstrapBlazor.Shared.Demos.Table.TablesAutoRefresh.TablesAutoRefreshControl": {
|
||||
"TablesAutoRefreshControlDescription": "通过点击按钮开始/关闭是否自动更新功能",
|
||||
"TablesAutoRefreshControlToggleAuto": "更改 Auto",
|
||||
"TablesAutoRefreshControlIsAutoRefresh": "当前值"
|
||||
@ -5577,7 +5577,7 @@
|
||||
"ClassAttr": "当前单元格样式",
|
||||
"ValueAttr": "当前单元格显示内容"
|
||||
},
|
||||
"BootstrapBlazor.Shared.Demos.Table.Cell.TableCellOnDoubleClickCell": {
|
||||
"BootstrapBlazor.Shared.Demos.Table.TablesCell.TableCellOnDoubleClickCell": {
|
||||
"TableCellOnDoubleClickCellToastTitle": "双击单元格回调",
|
||||
"TableCellOnDoubleClickCellCurrentCellName": "当前单元格名称:",
|
||||
"TableCellOnDoubleClickCellCurrentValue": "当前值:"
|
||||
|
@ -1,38 +1,53 @@
|
||||
@page "/tables"
|
||||
@inject IStringLocalizer<Tables> TablesLocalizer
|
||||
@inject IStringLocalizer<Tables> Localizer
|
||||
|
||||
<h3>@TablesLocalizer["TableBaseTitle"]</h3>
|
||||
<h3>@Localizer["TableBaseTitle"]</h3>
|
||||
|
||||
<h4>@TablesLocalizer["TableBaseDescription"]</h4>
|
||||
<h4>@Localizer["TableBaseDescription"]</h4>
|
||||
|
||||
<p>@((MarkupString)TablesLocalizer["TableBaseExplain1"].Value)</p>
|
||||
<p>@((MarkupString)Localizer["TableBaseExplain1"].Value)</p>
|
||||
|
||||
<p>@((MarkupString)TablesLocalizer["TableBaseExplain2"].Value)</p>
|
||||
<p>@((MarkupString)Localizer["TableBaseExplain2"].Value)</p>
|
||||
|
||||
<ul class="ul-demo">
|
||||
<li>@((MarkupString)TablesLocalizer["TableBaseTips1"].Value)</li>
|
||||
<li>@((MarkupString)TablesLocalizer["TableBaseTips2"].Value)</li>
|
||||
<li>@((MarkupString)TablesLocalizer["TableBaseTips3"].Value)</li>
|
||||
<li>@((MarkupString)Localizer["TableBaseTips1"].Value)</li>
|
||||
<li>@((MarkupString)Localizer["TableBaseTips2"].Value)</li>
|
||||
<li>@((MarkupString)Localizer["TableBaseTips3"].Value)</li>
|
||||
</ul>
|
||||
|
||||
<DemoBlock Title="@TablesLocalizer["TableBaseNormalTitle"]" Introduction="@TablesLocalizer["TableBaseNormalIntro"]" Name="TableBaseNormal" Demo="typeof(Demos.Table.Base.TableBaseNormal)">
|
||||
<div>@((MarkupString)TablesLocalizer["TableBaseNormalDescription"].Value)</div>
|
||||
<DemoBlock Title="@Localizer["TableBaseNormalTitle"]"
|
||||
Introduction="@Localizer["TableBaseNormalIntro"]"
|
||||
Name="TableBaseNormal"
|
||||
Demo="typeof(Demos.Table.TablesBase.TableBaseNormal)">
|
||||
<div>@((MarkupString)Localizer["TableBaseNormalDescription"].Value)</div>
|
||||
</DemoBlock>
|
||||
|
||||
<DemoBlock Title="@TablesLocalizer["TableBaseStripedTitle"]" Introduction="@TablesLocalizer["TableBaseStripedIntro"]" Name="TableBaseStriped" Demo="typeof(Demos.Table.Base.TableBaseStriped)" />
|
||||
<DemoBlock Title="@Localizer["TableBaseStripedTitle"]"
|
||||
Introduction="@Localizer["TableBaseStripedIntro"]"
|
||||
Name="TableBaseStriped"
|
||||
Demo="typeof(Demos.Table.TablesBase.TableBaseStriped)" />
|
||||
|
||||
<DemoBlock Title="@TablesLocalizer["TableBaseBorderedTitle"]" Introduction="@TablesLocalizer["TableBaseBorderedIntro"]" Name="TableBaseBordered" Demo="typeof(Demos.Table.Base.TableBaseBordered)" />
|
||||
<DemoBlock Title="@Localizer["TableBaseBorderedTitle"]"
|
||||
Introduction="@Localizer["TableBaseBorderedIntro"]"
|
||||
Name="TableBaseBordered"
|
||||
Demo="typeof(Demos.Table.TablesBase.TableBaseBordered)" />
|
||||
|
||||
<DemoBlock Title="@TablesLocalizer["TableBaseSizeTitle"]" Introduction="@TablesLocalizer["TableBaseSizeIntro"]" Name="TableBaseSize" Demo="typeof(Demos.Table.Base.TableBaseSize)">
|
||||
<p>@((MarkupString)TablesLocalizer["TableBaseSizeDescription"].Value)</p>
|
||||
<DemoBlock Title="@Localizer["TableBaseSizeTitle"]"
|
||||
Introduction="@Localizer["TableBaseSizeIntro"]"
|
||||
Name="TableBaseSize"
|
||||
Demo="typeof(Demos.Table.TablesBase.TableBaseSize)">
|
||||
<p>@((MarkupString)Localizer["TableBaseSizeDescription"].Value)</p>
|
||||
</DemoBlock>
|
||||
|
||||
<DemoBlock Title="@TablesLocalizer["TableBaseHeaderStyleTitle"]" Introduction="@TablesLocalizer["TableBaseHeaderStyleIntro"]" Name="TableBaseHeaderStyle" Demo="typeof(Demos.Table.Base.TableBaseHeaderStyle)">
|
||||
<p>@((MarkupString)TablesLocalizer["TableBaseHeaderStyleDescription"].Value)</p>
|
||||
<DemoBlock Title="@Localizer["TableBaseHeaderStyleTitle"]"
|
||||
Introduction="@Localizer["TableBaseHeaderStyleIntro"]"
|
||||
Name="TableBaseHeaderStyle"
|
||||
Demo="typeof(Demos.Table.TablesBase.TableBaseHeaderStyle)">
|
||||
<p>@((MarkupString)Localizer["TableBaseHeaderStyleDescription"].Value)</p>
|
||||
</DemoBlock>
|
||||
|
||||
<AttributeTable Items="GetAttributes()" />
|
||||
|
||||
<MethodTable Items="GetMethods()" />
|
||||
|
||||
<AttributeTable Items="GetTableColumnAttributes()" Title="@TablesLocalizer["AttributeTitle"]" />
|
||||
<AttributeTable Items="GetTableColumnAttributes()" Title="@Localizer["AttributeTitle"]" />
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -4,9 +4,16 @@
|
||||
<h3>@Localizer["TablesAutoRefreshTitle"]</h3>
|
||||
<h4>@Localizer["TablesAutoRefreshDescription"]</h4>
|
||||
|
||||
<DemoBlock Title="@Localizer["TablesAutoRefreshNormalTitle"]" Introduction="@Localizer["TablesAutoRefreshNormalIntro"]" Name="TablesAutoRefreshNormal" Demo="typeof(Demos.Table.AutoRefresh.TablesAutoRefreshNormal)">
|
||||
<DemoBlock Title="@Localizer["TablesAutoRefreshNormalTitle"]"
|
||||
Introduction="@Localizer["TablesAutoRefreshNormalIntro"]"
|
||||
Name="TablesAutoRefreshNormal"
|
||||
Demo="typeof(Demos.Table.TablesAutoRefresh.TablesAutoRefreshNormal)">
|
||||
<p>@((MarkupString)Localizer["TablesAutoRefreshNormalTips1"].Value)</p>
|
||||
<p>@((MarkupString)Localizer["TablesAutoRefreshNormalTips2"].Value)</p>
|
||||
</DemoBlock>
|
||||
|
||||
<DemoBlock Title="@Localizer["TablesAutoRefreshControlTitle"]" Introduction="@Localizer["TablesAutoRefreshControlIntro"]" Name="TablesAutoRefreshControl" Demo="typeof(Demos.Table.AutoRefresh.TablesAutoRefreshControl)" />
|
||||
|
||||
<DemoBlock Title="@Localizer["TablesAutoRefreshControlTitle"]"
|
||||
Introduction="@Localizer["TablesAutoRefreshControlIntro"]"
|
||||
Name="TablesAutoRefreshControl"
|
||||
Demo="typeof(Demos.Table.TablesAutoRefresh.TablesAutoRefreshControl)" />
|
||||
|
@ -1,26 +1,32 @@
|
||||
@page "/tables/cell"
|
||||
@inject IStringLocalizer<TablesCell> CellLocalizer
|
||||
@inject IStringLocalizer<TablesCell> Localizer
|
||||
|
||||
<style>
|
||||
.cell-demo {
|
||||
--bs-table-bg: ##e9ecef;
|
||||
--bs-table-bg: #e9ecef;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h3>@CellLocalizer["TablesCellTitle"]</h3>
|
||||
<h3>@Localizer["TablesCellTitle"]</h3>
|
||||
|
||||
<h4>@CellLocalizer["TablesCellDescription"]</h4>
|
||||
<h4>@Localizer["TablesCellDescription"]</h4>
|
||||
|
||||
<DemoBlock Title="@CellLocalizer["TableCellMergeCellTitle"]" Introduction="@CellLocalizer["TableCellMergeCellIntro"]" Name="MergeCell" Demo="typeof(Demos.Table.Cell.TableCellMergeCell)">
|
||||
<p>@((MarkupString)CellLocalizer["TableCellMergeCellTip"].Value)</p>
|
||||
<DemoBlock Title="@Localizer["TableCellMergeCellTitle"]"
|
||||
Introduction="@Localizer["TableCellMergeCellIntro"]"
|
||||
Name="MergeCell"
|
||||
Demo="typeof(Demos.Table.TablesCell.TableCellMergeCell)">
|
||||
<p>@((MarkupString)Localizer["TableCellMergeCellTip"].Value)</p>
|
||||
<Pre>.cell-demo {
|
||||
--bs-table-bg: ##e9ecef;
|
||||
}</Pre>
|
||||
</DemoBlock>
|
||||
|
||||
<DemoBlock Title="@CellLocalizer["TableCellOnDoubleClickCellTitle"]" Introduction="@CellLocalizer["TableCellOnDoubleClickCellIntro"]" Name="OnDoubleClickCell" Demo="typeof(Demos.Table.Cell.TableCellOnDoubleClickCell)">
|
||||
<DemoBlock Title="@Localizer["TableCellOnDoubleClickCellTitle"]"
|
||||
Introduction="@Localizer["TableCellOnDoubleClickCellIntro"]"
|
||||
Name="OnDoubleClickCell"
|
||||
Demo="typeof(Demos.Table.TablesCell.TableCellOnDoubleClickCell)">
|
||||
<Tips>
|
||||
<p>@((MarkupString)CellLocalizer["TableCellOnDoubleClickCellTip"].Value)</p>
|
||||
<p>@((MarkupString)Localizer["TableCellOnDoubleClickCellTip"].Value)</p>
|
||||
</Tips>
|
||||
</DemoBlock>
|
||||
|
||||
|
@ -15,35 +15,35 @@ public partial class TablesCell
|
||||
{
|
||||
new AttributeItem() {
|
||||
Name = "Row",
|
||||
Description = CellLocalizer["RowAttr"],
|
||||
Description = Localizer["RowAttr"],
|
||||
Type = "object",
|
||||
ValueList = " — ",
|
||||
DefaultValue = "<TModel>"
|
||||
},
|
||||
new AttributeItem() {
|
||||
Name = "ColumnName",
|
||||
Description = CellLocalizer["ColumnNameAttr"],
|
||||
Description = Localizer["ColumnNameAttr"],
|
||||
Type = "string",
|
||||
ValueList = " — ",
|
||||
DefaultValue = " — "
|
||||
},
|
||||
new AttributeItem() {
|
||||
Name = "Colspan",
|
||||
Description = CellLocalizer["ColspanAttr"],
|
||||
Description = Localizer["ColspanAttr"],
|
||||
Type = "int",
|
||||
ValueList = " — ",
|
||||
DefaultValue = "0"
|
||||
},
|
||||
new AttributeItem() {
|
||||
Name = "Class",
|
||||
Description = CellLocalizer["ClassAttr"],
|
||||
Description = Localizer["ClassAttr"],
|
||||
Type = "string",
|
||||
ValueList = " — ",
|
||||
DefaultValue = " — "
|
||||
},
|
||||
new AttributeItem() {
|
||||
Name = "Value",
|
||||
Description = CellLocalizer["ValueAttr"],
|
||||
Description = Localizer["ValueAttr"],
|
||||
Type = "string",
|
||||
ValueList = " — ",
|
||||
DefaultValue = " — "
|
||||
|
@ -4,7 +4,10 @@
|
||||
<h3>@Localizer["TablesDialogTitle"]</h3>
|
||||
<h4>@Localizer["TablesDialogDescription"]</h4>
|
||||
|
||||
<DemoBlock Title="@Localizer["TableDialogNormalTitle"]" Introduction="@Localizer["TableDialogNormalIntro"]" Name="TableDialogNormal" Demo="typeof(Demos.Table.Dialog.TableDialogNormal)">
|
||||
<DemoBlock Title="@Localizer["TableDialogNormalTitle"]"
|
||||
Introduction="@Localizer["TableDialogNormalIntro"]"
|
||||
Name="TableDialogNormal"
|
||||
Demo="typeof(Demos.Table.TablesDialog.TableDialogNormal)">
|
||||
<p>@((MarkupString)Localizer["TableDialogNormalDescription"].Value)</p>
|
||||
<ul class="ul-demo mb-3">
|
||||
<li>@((MarkupString)Localizer["TableDialogNormalTips1"].Value)</li>
|
||||
|
@ -1,18 +1,21 @@
|
||||
@page "/tables/lookup"
|
||||
@inject IStringLocalizer<Foo> Localizer
|
||||
@inject IStringLocalizer<TablesLookup> LookupLocalizer
|
||||
@inject IStringLocalizer<Foo> FooLocalizer
|
||||
@inject IStringLocalizer<TablesLookup> Localizer
|
||||
|
||||
<h3>@LookupLocalizer["TablesLookupTitle"]</h3>
|
||||
<h3>@Localizer["TablesLookupTitle"]</h3>
|
||||
|
||||
<h4>@((MarkupString)LookupLocalizer["TablesLookupDescription"].Value)</h4>
|
||||
<h4>@((MarkupString)Localizer["TablesLookupDescription"].Value)</h4>
|
||||
|
||||
<DemoBlock Title="@LookupLocalizer["TableLookupNormalTitle"]" Introduction="@LookupLocalizer["TableLookupNormalIntro"]" Name="Lookup" Demo="typeof(Demos.Table.Lookup.TableLookupNormal)">
|
||||
<p>@((MarkupString)LookupLocalizer["TableLookupNormalTips1"].Value)</p>
|
||||
<DemoBlock Title="@Localizer["TableLookupNormalTitle"]"
|
||||
Introduction="@Localizer["TableLookupNormalIntro"]"
|
||||
Name="Lookup"
|
||||
Demo="typeof(Demos.Table.TablesLookup.TableLookupNormal)">
|
||||
<p>@((MarkupString)Localizer["TableLookupNormalTips1"].Value)</p>
|
||||
<Pre>DataSource = new List<SelectedItem>
|
||||
{
|
||||
new SelectedItem { Value = "True", Text = @Localizer["True"].Value },
|
||||
new SelectedItem { Value = "False", Text = @Localizer["False"].Value }
|
||||
new SelectedItem { Value = "True", Text = @FooLocalizer["True"].Value },
|
||||
new SelectedItem { Value = "False", Text = @FooLocalizer["False"].Value }
|
||||
};</Pre>
|
||||
<p>@((MarkupString)LookupLocalizer["TableLookupNormalTips2"].Value)</p>
|
||||
<p>@((MarkupString)LookupLocalizer["TableLookupNormalTips3"].Value)</p>
|
||||
<p>@((MarkupString)Localizer["TableLookupNormalTips2"].Value)</p>
|
||||
<p>@((MarkupString)Localizer["TableLookupNormalTips3"].Value)</p>
|
||||
</DemoBlock>
|
||||
|
@ -5,10 +5,16 @@
|
||||
<h3>@Localizer["TablesVirtualizationTitle"]</h3>
|
||||
<h4>@Localizer["TablesVirtualizationDescription"]</h4>
|
||||
|
||||
<DemoBlock Title="@Localizer["VirtualizationNormalTitle"]" Introduction="@Localizer["VirtualizationNormalIntro"]" Name="Normal" Demo="typeof(Demos.Table.Virtualization.VirtualizationNormal)">
|
||||
<DemoBlock Title="@Localizer["VirtualizationNormalTitle"]"
|
||||
Introduction="@Localizer["VirtualizationNormalIntro"]"
|
||||
Name="Normal"
|
||||
Demo="typeof(Demos.Table.TablesVirtualization.TablesVirtualizationNormal)">
|
||||
<p>@((MarkupString)Localizer["VirtualizationNormalDescription"].Value)</p>
|
||||
</DemoBlock>
|
||||
|
||||
<DemoBlock Title="@Localizer["VirtualizationDynamicTitle"]" Introduction="@Localizer["VirtualizationDynamicIntro"]" Name="Dynamic" Demo="typeof(Demos.Table.Virtualization.VirtualizationDynamic)">
|
||||
<DemoBlock Title="@Localizer["VirtualizationDynamicTitle"]"
|
||||
Introduction="@Localizer["VirtualizationDynamicIntro"]"
|
||||
Name="Dynamic"
|
||||
Demo="typeof(Demos.Table.TablesVirtualization.TablesVirtualizationDynamic)">
|
||||
<p>@Localizer["VirtualizationDynamicDescription"]</p>
|
||||
</DemoBlock>
|
||||
|
Loading…
Reference in New Issue
Block a user