Class WidgetZoneTagHelper
Renders widget zone markup.
public class WidgetZoneTagHelper : HtmlHelperAsyncExtensionTagHelper
- Inheritance
-
objectTagHelperHtmlHelperAsyncExtensionTagHelperWidgetZoneTagHelper
- Extension Methods
Remarks
For the live site, null
value is returned. The HTML markup of widgets included in the zone is rendered directly to the response.
Constructors
WidgetZoneTagHelper(IHtmlHelper)
Initializes a new instance of the WidgetZoneTagHelper class.
public WidgetZoneTagHelper(IHtmlHelper htmlHelper)
Parameters
htmlHelper
IHtmlHelperThe HTML helper.
Properties
AllowedWidgets
Identifiers of allowed widgets in the zone. All widgets are allowed by default. Use NONE or System.Linq.Enumerable.Empty<TResult>() if no widgets are allowed; or ALL if all widgets are allowed.
public IEnumerable<string> AllowedWidgets { get; set; }
Property Value
- IEnumerable<string>
ZoneName
Widget zone name.
public string ZoneName { get; set; }
Property Value
- string
Methods
CallHtmlHelper()
Used to call Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper Kentico extension point methods.
protected override Task<IHtmlContent> CallHtmlHelper()
Returns
- Task<IHtmlContent>