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