In my ExtJS 4.2.1 Application I have a dashboard screen where Im showing some charts and grids.
I have been requested by my client to allow the user to add custom widget (from a static collection of widgets) so the dashboard will only show the widgets that the user wants to have.
So I have to create the widgets dynamically depending on some JSON that I will send from server when the user logins. But i have no idea how to implement this.
The process that the user will follow will be the following:
- On my dashboard view I will have 4 panels (table layout).
- Each panel will have a
tool(gear icon). - The user clicks on this gear icon and a window will be shown with a list of available widgets he can assign to that panel.
- The user selects the widget that he wants to add to the selected panel and he pressed the button "Apply".
- On button clicked event the preferences will be saved on database.
- The next time the user logins in to the app, the preferences will be loaded into the initial JSON so the widgets can be loaded into each panel.
Does anyone have implemented this kind of approach?