mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
30 lines
869 B
C#
30 lines
869 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace Radzen.Blazor
|
|
{
|
|
/// <summary>
|
|
/// A RadzenHtmlEditor tool which reverts the last edit operation.
|
|
/// </summary>
|
|
/// <example>
|
|
/// <code>
|
|
/// <RadzenHtmlEditor @bind-Value=@html>
|
|
/// <RadzenHtmlEditorUndo />
|
|
/// </RadzenHtmlEdito>
|
|
/// @code {
|
|
/// string html = "@lt;strong>Hello</strong> world!";
|
|
/// }
|
|
/// </code>
|
|
/// </example>
|
|
public partial class RadzenHtmlEditorUndo : RadzenHtmlEditorButtonBase
|
|
{
|
|
/// <inheritdoc />
|
|
protected override string CommandName => "undo";
|
|
|
|
/// <summary>
|
|
/// Specifies the title (tooltip) displayed when the user hovers the tool. Set to <c>"Undo"</c> by default.
|
|
/// </summary>
|
|
[Parameter]
|
|
public string Title { get; set; } = "Undo";
|
|
}
|
|
}
|