Merge pull request #2240 from wakuflair/dev

Adding an additional parameter for the SettingPageGroup's constructor.
pull/2375/head^2
Halil İbrahim Kalkan 6 years ago committed by GitHub
commit 5c90930715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,14 +19,17 @@
<div id="SettingManagementWrapper">
<abp-card>
<abp-card-body>
<abp-card-body>
<abp-tabs tab-style="PillVertical" vertical-header-size="_3">
@foreach (var group in Model.SettingPageCreationContext.Groups)
{
<abp-tab title="@group.DisplayName">
<abp-tab title="@group.DisplayName">
<h2>@group.DisplayName</h2>
<hr class="my-4" />
@await Component.InvokeAsync(group.ComponentType)
@await Component.InvokeAsync(group.ComponentType, new
{
parameter = group.Parameter
})
</abp-tab>
}
</abp-tabs>

@ -26,11 +26,14 @@ namespace Volo.Abp.SettingManagement.Web.Pages.SettingManagement
}
private Type _componentType;
public SettingPageGroup([NotNull] string id, [NotNull] string displayName, [NotNull] Type componentType)
public object Parameter { get; set; }
public SettingPageGroup([NotNull] string id, [NotNull] string displayName, [NotNull] Type componentType, object parameter = null)
{
Id = id;
DisplayName = displayName;
ComponentType = componentType;
Parameter = parameter;
}
}
}
Loading…
Cancel
Save