(Blazor UI) Cms-Kit supports render widgets #13703
Description
Resolves #12403
Checklist
- I fully tested it as developer / designer and created unit / integration tests
- I've assigned reviewer, related labels and set a milestone for this PR
How to test it?
TodayComponent
<p>Welcome Today Component</p>
<p>@DateTime.Now.ToString(Format)</p>
@code{
[Parameter]
public string Format { get; set; }
}
FormatComponent
<div>
<Field>
<FieldLabel>Format</FieldLabel>
<TextEdit @bind-Text="@Format" name="Format" Autofocus="true">
<Feedback>
<ValidationError/>
</Feedback>
</TextEdit>
</Field>
</div>
@code {
public string Format { get; set; } = "dd/MM/yyyy";
}
Configure<CmsKitContentWidgetOptions>(options =>
{
options.AddWidget<TodayComponent, FormatComponent>("Today", "Today","Format");
});