Initial commit

This commit is contained in:
oqtane
2019-05-04 20:32:08 -04:00
committed by Shaun Walker
parent 2f232eea7e
commit d71de1c21f
177 changed files with 8536 additions and 0 deletions

View File

@ -0,0 +1,26 @@
@using Oqtane.Shared
@DynamicComponent
@functions {
[CascadingParameter] PageState PageState { get; set; }
RenderFragment DynamicComponent { get; set; }
protected override void OnInit()
{
DynamicComponent = builder =>
{
Type skinType = Type.GetType(PageState.Page.SkinType);
if (skinType != null)
{
builder.OpenComponent(0, skinType);
builder.CloseComponent();
}
else
{
// skin does not exist with type specified
}
};
}
}