First of all, I'm a new WAB developer and I'm quite lost.. I'm trying to build a new custom widget and my first task is to load into a drop-down list the values of some specific field of the layer that is published in my webmap, but I am not sure how to access to fields collection, I have beed doing some research and I think that is throught "esri/layers/FeatureLayer" but I'm not sure. Can some one guide me a little bit please?
I have been able to acces to the layerinfo by "jimu/LayerInfos/LayerInfos" but I don't think that this library gives me access to fields collection of the layer.
Thanks you very much!