Class DynamicWidgetMarkdown
Inheritance
DynamicWidgetMarkdown
Assembly: Volo.CmsKit.Pro.Admin.Blazor.dll
Syntax
public class DynamicWidgetMarkdown : CmsKitProComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
DynamicWidgetMarkdown()
Declaration
public DynamicWidgetMarkdown()
Fields
AddWidgetModalRef
Declaration
protected Modal AddWidgetModalRef
Field Value
MarkdownRef
Declaration
protected Markdown MarkdownRef
Field Value
Type |
Description |
Markdown |
|
UploadImages
Declaration
protected Dictionary<int, Stream> UploadImages
Field Value
Properties
ContentRender
Declaration
[Inject]
protected IContentRender ContentRender { get; set; }
Property Value
JsRuntime
Declaration
[Inject]
protected IJSRuntime JsRuntime { get; set; }
Property Value
MarkdownToolbarButtons
Declaration
protected List<MarkdownAction> MarkdownToolbarButtons { get; set; }
Property Value
Type |
Description |
List<MarkdownAction> |
|
MediaDescriptorAdminAppService
Declaration
[Inject]
protected IMediaDescriptorAdminAppService MediaDescriptorAdminAppService { get; set; }
Property Value
Options
Declaration
[Inject]
protected IOptions<CmsKitContentWidgetOptions> Options { get; set; }
Property Value
Value
Declaration
[Parameter]
public string Value { get; set; }
Property Value
ValueChanged
Declaration
[Parameter]
public EventCallback<string> ValueChanged { get; set; }
Property Value
ViewModel
Declaration
protected DynamicWidgetMarkdown.ContentViewModel ViewModel { get; set; }
Property Value
Widgets
Declaration
protected Dictionary<string, string> Widgets { get; set; }
Property Value
Methods
AddWidgetAsync()
Declaration
protected virtual Task AddWidgetAsync()
Returns
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Overrides
CloseAddWidgetModalAsync()
Declaration
protected virtual Task CloseAddWidgetModalAsync()
Returns
ClosingAddWidgetModal(ModalClosingEventArgs)
Declaration
protected virtual Task ClosingAddWidgetModal(ModalClosingEventArgs eventArgs)
Parameters
Type |
Name |
Description |
ModalClosingEventArgs |
eventArgs |
|
Returns
GetUploadUrlAsync(string)
Declaration
protected virtual Task<string> GetUploadUrlAsync(string url)
Parameters
Type |
Name |
Description |
string |
url |
|
Returns
InitializeMarkdownAsync(string)
Declaration
public virtual Task InitializeMarkdownAsync(string content)
Parameters
Type |
Name |
Description |
string |
content |
|
Returns
OnAfterRenderAsync(bool)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type |
Name |
Description |
bool |
firstRender |
|
Returns
Overrides
OnCustomButtonClicked(MarkdownButtonEventArgs)
Declaration
protected virtual Task OnCustomButtonClicked(MarkdownButtonEventArgs eventArgs)
Parameters
Type |
Name |
Description |
MarkdownButtonEventArgs |
eventArgs |
|
Returns
OnImageUploadChangedAsync(FileChangedEventArgs)
Declaration
protected virtual Task OnImageUploadChangedAsync(FileChangedEventArgs e)
Parameters
Type |
Name |
Description |
FileChangedEventArgs |
e |
|
Returns
OnImageUploadEndedAsync(FileEndedEventArgs)
Declaration
protected virtual Task OnImageUploadEndedAsync(FileEndedEventArgs e)
Parameters
Type |
Name |
Description |
FileEndedEventArgs |
e |
|
Returns
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnValueChanged(string)
Declaration
protected Task OnValueChanged(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
OpenAddWidgetModalAsync()
Declaration
protected virtual Task OpenAddWidgetModalAsync()
Returns
PreviewMarkdownAsync(string)
Declaration
protected virtual Task<string> PreviewMarkdownAsync(string plainText)
Parameters
Type |
Name |
Description |
string |
plainText |
|
Returns
SetMarkdownValueAsync(string)
Declaration
public Task SetMarkdownValueAsync(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
Implements
Extension Methods