mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-07-08 18:16:08 +00:00
- Introduced `HtmlEditorTableStrings` for centralized localization. - Added `RadzenHtmlEditorTableTools` for grouped table commands. - Refactored `HtmlEditorTests.cs` to reduce duplication. - Improved table manipulation logic in `Radzen.Blazor.js`. - Consolidated repetitive logic for better maintainability. - Updated tests to validate new table commands and localization.
17 lines
1.2 KiB
Plaintext
17 lines
1.2 KiB
Plaintext
@inherits RadzenHtmlEditorButtonBase
|
|
|
|
<RadzenHtmlEditorTable />
|
|
<RadzenHtmlEditorTableCommandButton TableCommand="addRowBefore" Icon="north" Title="@Strings.InsertRowAbove" />
|
|
<RadzenHtmlEditorTableCommandButton TableCommand="addRowAfter" Icon="south" Title="@Strings.InsertRowBelow" />
|
|
<RadzenHtmlEditorTableCommandButton TableCommand="addColumnBefore" Icon="west" Title="@Strings.InsertColumnLeft" />
|
|
<RadzenHtmlEditorTableCommandButton TableCommand="addColumnAfter" Icon="east" Title="@Strings.InsertColumnRight" />
|
|
<RadzenHtmlEditorTableCommandButton TableCommand="deleteRow" Icon="horizontal_rule" Title="@Strings.DeleteRow" />
|
|
<RadzenHtmlEditorTableCommandButton TableCommand="deleteColumn" Icon="vertical_align_center" Title="@Strings.DeleteColumn" />
|
|
<RadzenHtmlEditorTableCommandButton TableCommand="mergeCellRight" Icon="merge_type" Title="@Strings.MergeRight" />
|
|
<RadzenHtmlEditorTableCommandButton TableCommand="mergeCellDown" Icon="merge" Title="@Strings.MergeDown" />
|
|
<RadzenHtmlEditorTableCommandButton TableCommand="splitCell" Icon="call_split" Title="@Strings.SplitCell" />
|
|
|
|
@code {
|
|
HtmlEditorTableStrings Strings => TableStrings ?? Editor?.TableStrings ?? new HtmlEditorTableStrings();
|
|
}
|