I am struggling with Object Provider and Composition Provider in order to create folders tree.
Is it possible to provide an example in the tutorial of building hierarchy of the tree?
I got to the same results as in this issue: https://github.com/nasa/openmct/issues/2281
My use case is to create a folder hierarchy from the name of the field that is delimited with "."
For example Spacecraft.FuelSystem.Pressure and Spacecraft.FuelSystem.Fuel shall create the tree:
Spacecraft
└─ FuelSystem
├─ Pressure
└─ Fuel
Edit:
The struggle comes from the lack of understanding of how and when Composition Provider and Object Provider are invoked. There are quite a few examples of using those in the internet. And it is hard to understand from the provided documentation the full logic of those objects
https://github.com/serbuh/openmct/blob/74ecfd68504b4b70dc5110b07780dc7e7bb392c6/API.md#composition-providers
I would be very thankful for some more examples of use of the Object and Composition Providers
I am struggling with Object Provider and Composition Provider in order to create folders tree. Is it possible to provide an example in the tutorial of building hierarchy of the tree? I got to the same results as in this issue:
https://github.com/nasa/openmct/issues/2281 My use case is to create a folder hierarchy from the name of the field that is delimited with "." For example
Spacecraft.FuelSystem.Pressure
andSpacecraft.FuelSystem.Fuel
shall create the tree:Edit: The struggle comes from the lack of understanding of how and when Composition Provider and Object Provider are invoked. There are quite a few examples of using those in the internet. And it is hard to understand from the provided documentation the full logic of those objects https://github.com/serbuh/openmct/blob/74ecfd68504b4b70dc5110b07780dc7e7bb392c6/API.md#composition-providers
I would be very thankful for some more examples of use of the Object and Composition Providers