In my e-commerce admin cpanel app I have a very big form (product form) with lots of section one for title and description and price, one for sale one for colors and seizes and images etc. I divided it into smaller widget in separated classes and each of them has its own children widgets in another separated classes each child class has a ( onSave ) function which I need to trigger from the main form button located in the grand grand parent so how can I access all ( onSave ) functions from this parent
In this ( onSave ) functions I'm using provider pattern to pass the data I collect in each widget to a provider class and in there I can send the datd to the server