How to Add Static Text to Tables or Lists (DataViewer)

Anne Ramey
Form Developers
Understanding of the basic use of DataViewer

Static text or content can be added to a Table or List in the configuration options of Data Viewer.

The "defaultContent" object can be used to set static text in both a Table or List. Simple text can be added to display common text in each table cell or list. HTML content can be added to display elements such as checkboxes.

Example

The example below shows an example "data" object for configuration options in Data Viewer.

NOTE: The class of "control" is used to prevent triggering the row selection. Without this class, clicking the checkbox will trigger the row selection.

data: [
    {
        title:"<input type='checkbox' class='editor-active'>",   
        defaultContent:"<input type='checkbox'>",
        class:"control",
    },
    {
        defaultContent: 'static',
        title:"static text",
        class: 'all',
    },
],