[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.ControlBuilder-2

ControlBuilder<TControl, TBuilder> Class

Defines a builder to configurate Control.

Implements
Namespace: C1.Web.Mvc.Fluent
Assembly: C1.AspNetCore.Mvc.dll
Syntax
public abstract class ControlBuilder<TControl, TBuilder> : ComponentBuilder<TControl, TBuilder>, IHtmlContent where TControl : Control where TBuilder : ControlBuilder<TControl, TBuilder>
Type Parameters
Name Description
TControl
TBuilder

Constructors

Name Description
ControlBuilder(TControl)

Creates one ControlBuilder<TControl, TBuilder> instance to configurate control.

Methods

Name Description
CssClass(string)

Configurates CssClass. Sets the css class of the control.

CssStyle(string, string)

Configurates CssStyles. Sets the CSS style applied in the control.

CssStyles(IDictionary<string, string>)

Configurates CssStyles. Sets the CSS style applied in the control.

Height(int)

Sets the height of the control in pixel.

Height(string)

Configurates Height. Sets the height of the control.

HtmlAttribute(string, string)

Configurates HtmlAttributes. Sets the HTML attributes.

HtmlAttributes(IDictionary<string, object>)

Configurates HtmlAttributes. Sets the HTML attributes.

HtmlAttributes(object)

Configurates HtmlAttributes. Sets the HTML attributes.

Id(string)

Configurates Id. Sets the id of the control.

IsDisabled(bool)

Configurates IsDisabled. Sets a value that determines whether the control is disabled.

OnClientGotFocus(string)

Configurates the OnClientGotFocus client event. Occurs when the control gets the focus.

OnClientLostFocus(string)

Configurates the OnClientLostFocus client event. Occurs when the control loses the focus.

OnClientRefreshed(string)

Configurates the OnClientRefreshed client event. Occurs after the control has refreshed its contents.

OnClientRefreshing(string)

Configurates the OnClientRefreshing client event. Occurs when the control is about to refresh its contents.

TabOrder(int)

Configurates TabOrder. Sets a value of the tabindex attribute associated with the control.

TemplateBind(string, string)

Configurates the TemplateBindings client event. Sets the collection of the template bindings.

ToTemplate()

Transfer to the template mode.

Width(int)

Sets the width of the control in pixel.

Width(string)

Configurates Width. Sets the width of the control.