Class RadzenHtmlEditorImage
A tool which inserts and uploads images in a RadzenHtmlEditor.
public class RadzenHtmlEditorImage : RadzenHtmlEditorButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
RadzenHtmlEditorImage
- Implements
- Inherited Members
Examples
<RadzenHtmlEditor @bind-Value=@html>
<RadzenHtmlEditorImage />
</RadzenHtmlEdito>
@code {
string html = "@lt;strong>Hello</strong> world!";
}
Constructors
RadzenHtmlEditorImage()
public RadzenHtmlEditorImage()
Properties
AltText
Specifies the text of the label suggesting the user to enter a alternative text (alt
) for the image. Set to "Alternative text"
by default.
[Parameter]
public string AltText { get; set; }
Property Value
CancelText
Specifies the text of button which cancels image insertion and closes the dialog. Set to "Cancel"
by default.
[Parameter]
public string CancelText { get; set; }
Property Value
HeightText
Specifies the text of label for image height. Set to "Image Height"
by default.
[Parameter]
public string HeightText { get; set; }
Property Value
OkText
Specifies the text of button which inserts the image. Set to "OK"
by default.
[Parameter]
public string OkText { get; set; }
Property Value
SelectText
Specifies the text of the label suggesting the user to select a file for upload. Set to "Select image file to upload"
by default.
[Parameter]
public string SelectText { get; set; }
Property Value
Title
Specifies the title (tooltip) displayed when the user hovers the tool. Set to "Insert image"
by default.
[Parameter]
public string Title { get; set; }
Property Value
UploadChooseText
Specifies the text of the upload label. Set to "Browse"
by default.
[Parameter]
public string UploadChooseText { get; set; }
Property Value
UrlText
Specifies the text of the label suggesting the user to enter a web address. Set to "or enter a web address"
by default.
[Parameter]
public string UrlText { get; set; }
Property Value
WidthText
Specifies the text of label for image width. Set to "Image Width"
by default.
[Parameter]
public string WidthText { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
OnClick()
Handles the click event of the button. Executes the command.
protected override Task OnClick()