Augmented.js Presentation Widget Module
Widgets and small presentation modules
List widget - renders a standard list
id
string The id of the parent to attach the listdata
Array The data to renderordered
boolean True if the list should be orderedbinding
string The binding (used for decorator and optional)
Returns Element Returns a DOM element as a list
DescriptionList widget - renders a description list
id
string The id of the parent to attach the listdata
Object The data to renderbinding
string The binding (used for decorator and optional)
Returns Element Returns a DOM element as a description list
DataList widget - renders a data list
id
string The id of the parent to attach the listdata
Array The data to renderbinding
string The binding (used for decorator and optional)
Returns Element Returns a DOM element as a data list
Input widget - renders an input or simular based on type
field
object Field property object (required)name
string The name of the fieldvalue
string The value to presetid
string The id of the fieldrequired
boolean If the field is requiredbinding
string The binding (used for decorator and optional)
field object format:
{
"description": "Something",
"type": "string", // string, number, integer, boolean, object (can be an array), email, uri, date-time
"minimum": 0,
"maximum": 85,
"format": "email", // optional
"pattern": "[A-Za-z]", // any regex
"value": "bubba",
"enum": [ "something", ... ]
}
Returns Element Returns a DOM element as an input