Get Free Trial

How can sort the fields in “Fields” and hide some fields in json data?

shuwei asked on November 9, 2021

I used control in my vue project.
How can I  sort the fields in “Fields”?
How can I hide the fields not in mapping but in json data source?

1 answer

Nadia Khodakivska Nadia Khodakivska Flexmonster November 12, 2021

Hello, Shuwei,
Thank you for reaching out to us.

  1. Sorting options are not supported in the Field List inside the component. The fields are displayed in alphabetical order. However, we can suggest you a workaround illustrated in the following JSFiddle:
  2. It is only possible to hide the fields using the mapping. Kindly note that the mapping can be defined using a URL to a JSON file with the mapping as well:
report: {
    dataSource: {
        filename: "data.json",
        mapping: "<URL_to_your_mapping_file>"

We hope it helps. You are welcome to write to us in case further questions arise.
Kind regards,

Please login or Register to Submit Answer