[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.ControlBuilderFactory.ListBox

ListBox Method

ListBox<T>(string)

Creates a ListBox<T> control and attaches it to the dom elements matching against the specified selector.

Declaration
public ListBoxBuilder<T> ListBox<T>(string selector = null)
Parameters
Type Name Description
string selector

Specifies a selector. It is optional. If it is not set, a default dom element will be generated.

Returns
Type Description
ListBoxBuilder<T>

A ListBoxBuilder<T>.

Type Parameters
Name Description
T

The data item type.

ListBox(string)

Creates a ListBox<T> control and attaches it to the dom elements matching against the specified selector.

Declaration
public ListBoxBuilder<object> ListBox(string selector = null)
Parameters
Type Name Description
string selector

Specifies a selector. It is optional. If it is not set, a default dom element will be generated.

Returns
Type Description
ListBoxBuilder<object>

A ListBoxBuilder<T>.