Advanced User Interface Controls and Components

IntegralUI Web

Documentation and API Reference

exportToJSON(name, fields, flat, spacing)

Exports the whole tree structure as tree or flat list in JSON format.


nameStringThe value of name attribute of the TreeView directive
fields (optional)ArrayA list of all field names of item object that you want to export to JSON
flat (optional)BooleanDetermines whether exported data is in tree or flat format.
spacing (optional)StringA string that determines the space between objects in exported JSON

Return Value

Returns a String in JSON format that reperesents the exported data of the TreeView.


This method is part of IntegralUITreeViewService.

Version Information

Supported in: v1.1.