index.html
RESTApp configuration is defined in index.html.
If an index.js file is present, index.html will be rendered server side as an underscore template. If there is no index.js, it will be rendered as is.
Values saved in the configuration will be available through appData in the server side context of the RESTApp by the key you defined in the name
attribute of the template.
Toggle content
Content can be toggled based on checkbox/radio button state by using data-enables="<selector>"
.
Checkbox boolean
For checkboxes you can use the data attribute data-value-type="boolean"
to make it return true
or false
.
Sitevision components
Sitevision offers "native" components to select values from the Sitevision model. Values are retrieved using the appData-object in a server side script context.
In order to utilize Sitevision components, simply add data-component="<type>"
to an input/select element. The following types are supported.
See all available components at the Sitevision components page.
HTML Components
Regular HTML elements may also be used to accept data from the user.