vendredi 4 septembre 2020

Angular material tree checkbox with real example

I saw almost all examples about how to work with angular material tree checkbox such as official example and this.
In this examples used string array structure. but how can I transform a real nested object array structure to angular material tree checkbox?
My structure:

enter image description here

As you see the data that received from the server, say to the client that which item checkbox value is true. and 'Id' must be bind to the tree because of I send this field to the server when user submit the form.
This structure is correct? and how can I mapping to angular material tree chechbox.
Angular version(7.0.0) Angular Material Version(6.4.7)




Aucun commentaire:

Enregistrer un commentaire