presentation-widget
v3.0.0
Published
The Augmented.js Next - Presentation Application Module.
Downloads
43
Maintainers
Readme
presentation-widget
Augmented.js Presentation Widget Module
API
Table of Contents
Widget
Widgets and small presentation modules
List
List widget - renders a standard list
Parameters
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
DescriptionList widget - renders a description list
Parameters
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
DataList widget - renders a data list
Parameters
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
Input widget - renders an input or simular based on type
Parameters
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)
Examples
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