Shows a JSON-formatted value inside a datatable component.

Basic Usage

<adf-datatable>
   <data-columns>
        <data-column key="json" type="json" title="Json Column"></data-column>
    </data-columns>
</adf-datatable>

You can specify the cell inside the app.config.json file:

{
    "adf-cloud-process-list": {
        "presets": {
            "default": [
                {
                    "key": "json",
                    "type": "json",
                    "title": "Json cell value"
                }
            ]
        }
    }
}

Class members

Properties

NameTypeDefault valueDescription
columnDataColumnData that defines the column.
copyContentbooleanEnables/disables a Clipboard directive to allow copying of the cell's content.
dataDataTableAdapterData table adapter instance.
editablebooleanfalseEditable JSON.
resolverFnFunctionnullCustom resolver function which is used to parse dynamic column objects
rowDataRowData that defines the row.
tooltipstringText for the cell's tooltip.

Details

This component provides a custom display to show JSON data in a Datatable component cell

See also

© 2023 Alfresco Software, Inc. All Rights Reserved.