0
Hasan created
Hello Team
I would like to show the Menu based on the Feature.
How to achieve that ?
.AddItem(new MenuItemDefinition( PageNames.App.Tenant.Connect, L("Connect"), "fa fa-connectdevelop", requiredPermissionName: AppPermissions.Pages_Tenant_Connect )
5 Answer(s)
-
0
Have you tried to set featureDependency property of the menu item?
-
0
How to Set it ?
Please show me a example
Thanks
-
0
new MenuItemDefinition( PageNames.App.Common.Roles, L("Roles"), url: "roles", icon: "icon-briefcase", requiredPermissionName: AppPermissions.Pages_Administration_Roles, featureDependency: new SimpleFeatureDependency("MyFeatureName") )
-
0
Hi, I'm interested on how to implement IFeatureDependency interface for this purpose. Can you show us an example?
Thanks :)
-
0
new Abp.Application.Features.SimpleFeatureDependency("MyFeatureName");
Found it :)