[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.DropDownBuilder-2

DropDownBuilder<TControl, TBuilder> Class

Defines a builder to configurate DropDown.

Inheritance
HideObjectMembers
BaseBuilder<TControl, TBuilder>
ComponentBuilder<TControl, TBuilder>
ControlBuilder<TControl, TBuilder>
InputBaseBuilder<TControl, TBuilder>
FormInputBaseBuilder<TControl, TBuilder>
DropDownBuilder<TControl, TBuilder>
Implements
Namespace: C1.Web.Mvc.Fluent
Assembly: C1.Web.Mvc.dll
Syntax
public abstract class DropDownBuilder<TControl, TBuilder> : FormInputBaseBuilder<TControl, TBuilder>, IHtmlString where TControl : DropDown where TBuilder : DropDownBuilder<TControl, TBuilder>
Type Parameters
Name Description
TControl
TBuilder

Constructors

Name Description
DropDownBuilder(TControl)

Creates one DropDownBuilder<TControl, TBuilder> instance to configurate component.

Methods

Name Description
AutoExpandSelection(bool)

Configurates AutoExpandSelection. Sets a value that indicates whether the control should automatically expand the selection to whole words/numbers when the control is clicked.

ClickAction(ClickAction)

Configurates ClickAction. Sets a value that specifies the action to perform when the user clicks the input element in the control.

DropDownCssClass(string)

Configurates DropDownCssClass. Sets a CSS class name to add to the control's drop-down element.

InputType(string)

Configurates InputType. Sets the "type" attribute of the HTML input element hosted by the control.

IsAnimated(bool)

Configurates IsAnimated. Sets a value that indicates whether the control should use a fade-in animation when displaying the drop-down.

IsDroppedDown(bool)

Configurates IsDroppedDown. Sets a value indicating whether the drop down is currently visible.

IsReadOnly(bool)

Configurates IsReadOnly. Sets a value that indicates whether the user can modify the control value using the mouse and keyboard.

IsRequired(bool)

Configurates IsRequired. Sets a value indicating whether the control value must be a non-empty string.

OnClientIsDroppedDownChanged(string)

Configurates the OnClientIsDroppedDownChanged client event. Occurs after the drop down is shown or hidden.

OnClientIsDroppedDownChanging(string)

Configurates the OnClientIsDroppedDownChanging client event. Occurs before the drop down is shown or hidden.

OnClientTextChanged(string)

Configurates the OnClientTextChanged client event. Occurs when the value of the Text property changes.

Placeholder(string)

Configurates Placeholder. Sets the string shown as a hint when the control is empty.

ShowDropDownButton(bool)

Configurates ShowDropDownButton. Sets a value indicating whether the control should display a drop-down button.

Text(string)

Configurates Text. Sets the text shown on the control.

Extension Methods