Namespace: Widget

.Presentation. Widget

Widgets and small presentation modules

Source:

Methods


<static> DataList(id, data, binding)

DataList widget - renders a data list

Parameters:
Name Type Description
id string

The id of the parent to attach the list

data Array

The data to render

binding string

The binding (used for decorator and optional)

Source:
Returns:

Returns a DOM element as a data list

Type
Element

<static> DescriptionList(id, data, binding)

DescriptionList widget - renders a description list

Parameters:
Name Type Description
id string

The id of the parent to attach the list

data Object

The data to render

binding string

The binding (used for decorator and optional)

Source:
Returns:

Returns a DOM element as a description list

Type
Element

<static> Input(field, name, value, id, required, binding)

Input widget - renders an input or simular based on type

Parameters:
Name Type Description
field object

Field property object (required)

name string

The name of the field

value string

The value to preset

id string

The id of the field

required boolean

If the field is required

binding string

The binding (used for decorator and optional)

Source:
Returns:

Returns a DOM element as an input

Type
Element

<static> List(id, data, data, binding, ordered)

List widget - renders a standard list

Parameters:
Name Type Description
id string

The id of the parent to attach the list

data Object

The data to render

data Array

The data to render

binding string

The binding (used for decorator and optional)

ordered boolean

True if the list should be ordered

Source:
Returns:

Returns a DOM element as a list

Type
Element