Class RichTextEditorAudioSettings
A class used for configuring the audio settings in the SfRichTextEditor.
Inherited Members
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class RichTextEditorAudioSettings : RichTextEditorMediaSettings
Constructors
RichTextEditorAudioSettings()
Declaration
public RichTextEditorAudioSettings()
Properties
AllowedTypes
Gets or sets the an audio extensions that populate the allowed type of audio on browse.
Declaration
public List<string> AllowedTypes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | The list of audio types that are allowed to be uploaded. The default values are |
Remarks
The File Browser allows secified extenions audio files and restricts uploading of other types of files.
Examples
The following code example allows uploading of only mp3 and wav audio files.
@using Syncfusion.Blazor.RichTextEditor;
<SfRichTextEditor>
<RichTextEditorToolbarSettings Items = "@Tools" />
<RichTextEditorAudioSettings AllowedTypes="@TypeList" />
</SfRichTextEditor>
@code {
List<string> TypeList = new List<string>() { ".mp3", ".wav" };
private List<ToolbarItemModel> Tools = new List<ToolbarItemModel>()
{
new ToolbarItemModel() { Command = ToolbarCommand.Audio }
};
}
Methods
Dispose(Boolean)
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean value to dispose the object. |
Overrides
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
Overrides
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |