NuGet package | Owin.Framework.Pages.Html |
GitHub source | OwinFramework.Pages.Html |
Attach this attribute to a class to identify it as a region.
[IsRegion("addres_list")] [Repeat(typeof(Person))] [NeedsData("person_address")] internal class AddressListRegion { }
The [IsRegion()] attribute has the following properties you can set.
If you want to refer to your region by name in other page elements, then you need to provide a unique name here. The name will be scoped by the package it is in, so the name only has to be unique within the package.
If you want to refer to this region by name from a page element that is in a different package, then you need to prefix the region name with the package prefix and a colon, for example "regions:address_region"