[]
        
(Showing Draft Content)

C1.Web.Mvc.Component

Component Class

Defines the C1 MVC component class.

Inheritance
Component
Implements
Namespace: C1.Web.Mvc
Assembly: C1.AspNetCore.Mvc.dll
Syntax
public abstract class Component : IHtmlContent

Constructors

Name Description
Component(IHtmlHelper)

Creates one Component instance.

Properties

Name Description
ChildComponentsCreated

Gets or sets a boolean value indicates whether child components are created.

ClientComponent

Gets a value which represents the client control constructor with the complete namespace.

Components

Gets the child components.

HasScripts

Gets a boolean value indicates whether current component has the scripts which need to be rendered.

Id

Gets or sets the component id.

UrlHelper

Gets the url helper.

Methods

Name Description
CreateChildComponents()

Creates child components.

EnsureChildComponents()

Ensure the child components created.

OnPreRender()

This method is performed before rendering.

RegisterStartupScript(TextWriter)

Registers the start-up script.

Render(TextWriter, HtmlEncoder)
RenderScripts(TextWriter, bool)

Render the scripts.

SerializeOptions()

Serialize the control to a Json string.

WriteTo(TextWriter, HtmlEncoder)

Writer the process result of current instance to the writer.

Extension Methods