Open mayur9785 opened 7 years ago
@mayur9785 Looks like a lot of interesting work.
It would be much easier to visualize this (and possibly contribute) if you provided a working example with demo in a github repo.
Also: check out my cmv-calcite-maps repo. All of the cmv core widgets are there in floating windows. They are not draggable windows since the calcite maps template doesn't currently support that. There were no modifications to titlePane widgets required to include them in the floating window. There were no modifications to core CMV required. Only a few methods were overridden in the _CalciteMixin
I recommend you follow a similar methodology in your approach to keep modifications to the core CMV to a minimum (or none, if possible). This allows for easier upgrades in the future.
I look forward to see your toolbar/window approach in action!
@tmcgee I have created repo CMVFloatingPane here to download the file. As of now it is working for Draw widget only and my priority is for LayerControl now, but its not loading into the Floating pane. Later I have plan to use other CMV widgets and WAB widgets in my app with the same Floating pane created dynamically and load the actual widgets in it.
Hi @mayur9785 please add all the individual files in the repo instead of a single rar file. That would greatly help myself and others that may want to contribute. :) Thanks.
Hi @tmcgee I have added the all files in repo CMV Floating Pane. Please have a look into that and help how other cmv widgets and WAB widgets we can load in Floating pane.
:) Thank you very much your support.
Hi, I am working on create dynamic toolbar toggle button widgets that configured in viewer.js file. The button is linked with Floating pane widgets open/close, expand/collapse & movable. Instead of sidebar I try to load Draw widgets in floating panel and it's loading and working fine. The same way I am trying to load LayerControl widgets in Floating pane but unable to load.
I am able to load Draw widgets, and I want to have LayerControl in my Floating Pane and later I have plan to use other widgets.
Any idea how to load LayerControl in floating panel. There is something I am missing, I tried to find but not getting exact point where to do and what parameter to pass?
Here is my steps to get it done for Draw widgets and same way I am trying for LayerControl.
Then in Controller.js file - I am calling this this.loadtoolbarWidgets() in initWidgets functions
This function is below how I call the widgets, create menu, floating pane etc..
Here is the LayerControl.js file - I have added 2 more functions to linked the widgets with toggle menu button and create Floating pane widgets - below is the changes in LayerControl.js file
], function (declare, _WidgetBase, domConstruct, query, on, dom, lang, domStyle, domClass, FloatingPane, ContentPane, dndMove) {
});