Skip to content

HtmlLazyTypesExtensions class

namespace: Serenity.Web   assembly: Serenity.Net.Web

Contains extensions for the client side types that are loaded when they are first requested.

public static class HtmlLazyTypesExtensions

Public Members

name description
static LazyTypes(…) Renders the types declared with LazyLoadTypesAttribute as a JSON block that maps the content hashed module urls to their type keys, which the default Config.lazyTypeLoader reads when a type is not found in a type registry. Should be included in the layout head, like the ScriptCulture block. Returns an empty string if there are no such types.

See Also