Class BlockEditorImageBlock
Gets or sets the settings for the image block in the editor.
Inherited Members
Namespace: Syncfusion.Blazor.BlockEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class BlockEditorImageBlock : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
This allows configuration of global image options such as AllowedTypes, SaveFormat, etc.
Constructors
BlockEditorImageBlock()
Declaration
public BlockEditorImageBlock()
Properties
AllowedTypes
Specifies the list of allowed image file types that can be uploaded.
Declaration
[Parameter]
public string[] AllowedTypes { get; set; }
Property Value
| Type |
|---|
| string[] |
EnableResize
Specifies whether image can be resized.
Declaration
[Parameter]
public bool EnableResize { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A boolean value that indicates whether the image block can be resized. |
Height
Specifies the display height of the image.
Declaration
[Parameter]
public string Height { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string value representing the popup height. Accepts values in pixels ( |
MaxHeight
Specifies the maximum height of the image in pixels or as a string unit.
Declaration
[Parameter]
public string MaxHeight { get; set; }
Property Value
| Type |
|---|
| string |
MaxWidth
Specifies the maximum width of the image in pixels or as a string unit.
Declaration
[Parameter]
public string MaxWidth { get; set; }
Property Value
| Type |
|---|
| string |
MinHeight
Specifies the minimum height of the image in pixels or as a string unit.
Declaration
[Parameter]
public string MinHeight { get; set; }
Property Value
| Type |
|---|
| string |
MinWidth
Specifies the minimum width of the image in pixels or as a string unit.
Declaration
[Parameter]
public string MinWidth { get; set; }
Property Value
| Type |
|---|
| string |
SaveFormat
Specifies formats available for saving images.
Declaration
[Parameter]
[JsonConverter(typeof(JsonStringEnumConverter))]
public SaveFormat SaveFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| SaveFormat | Options include saving as Base64 or Blob. |
Width
Specifies the display width of the image.
Declaration
[Parameter]
public string Width { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string value representing the popup width. Accepts values in pixels ( |
Methods
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| Task |