Custom HTML Tags and Components
Overview
Example Tags and Components
A
translator
is a library that can convert a set of custom HTML tags into workable HTML and/or dynamic components.
As an example, the following set of custom tags can be used to create a table to dispaly
<view-data class="view-data" style="height:400px;">
<script type="json">
{
"sortable": true,
"filterable": true,
"altrows": true,
"columnsresize": true,
"defaultwidth": "160px",
"data": "category"
}
</script>
</view-data>
The above table would then be rendered as
A translator is specified by a translate tag in the HTML code. It specifies a URL that points to a
library that can translate a given set of tags.
<translate url="/lib/translate/v1.0.0/layout.mjs"></translate>
Davinci Provided Translators
Davinci provides a set of common translators.