Files
radzen-blazor/Radzen.Blazor/RadzenHtmlEditorTableTools.razor
Frank Leib 614d28f788 Refactor and enhance RadzenHtmlEditor table tools
- 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.
2026-06-15 18:45:10 +03:00

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();
}