cmv / cmv-wab-widgets

Examples of using widgets from the ESRI WebApp Builder in CMV
https://cmv.github.io/cmv-wab-widgets/demo.html?config=wab
MIT License
9 stars 19 forks source link

WAB widgets working without anything code change #1

Closed ERS-Long closed 7 years ago

ERS-Long commented 8 years ago

https://github.com/USEPA/Public_Web_AppBuilder/tree/master/widgets/BombThreat

        BombThreat: {
            include: true,
            id: 'BombThreat',
            type: 'titlePane',
            position: 16,
            title: 'BombThreat',
            open: false,
            path: 'jimu/BaseWidgetPanel',
            options: {
                widgetManager: true,
                config: {
                    widgets: [
                        {
                            id: 'WABBombThreat',
                            uri: 'widgets/BombThreat/Widget'
                        }
                    ]
                }
            }
        },              
ERS-Long commented 8 years ago

PrintPlus is also working. Minor issue is the pan map is not working.

https://github.com/USEPA/Public_Web_AppBuilder/tree/master/widgets/PrintPlus

The only issue with this one is it is showing the print plus outline by default. I could not figure out how to change that. If I go into the file config.json in that widget to change

"showLayout": true, to
"showLayout": false,

Then it will not show the outline anymore.

I dont know if that is the bug in that widget or something i could missed.

        PrintPlus: {
            include: true,
            id: 'PrintPlus',
            type: 'titlePane',
            position: 19,
            title: 'PrintPlus',
            open: false,
            path: 'jimu/BaseWidgetPanel',
            options: {
                widgetManager: true,
                config: {
                    widgets: [
                        {
                            id: 'WABPrintPlus',
                            uri: 'widgets/PrintPlus/Widget'
                        }
                    ]
                }
            }
        },                        
ERS-Long commented 8 years ago

elpaso is also working with no change needed

https://github.com/USEPA/Public_Web_AppBuilder/tree/master/widgets/elpaso

        elpaso: {
            include: true,
            id: 'elpaso',
            type: 'titlePane',
            position: 20,
            title: 'elpaso',
            open: false,
            path: 'jimu/BaseWidgetPanel',
            options: {
                widgetManager: true,
                config: {
                    widgets: [
                        {
                            id: 'WABelpaso',
                            uri: 'widgets/elpaso/Widget'
                        }
                    ]
                }
            }
        },          
tmcgee commented 8 years ago

Nice!

ERS-Long commented 8 years ago

Another one is working out of the box -- ERG

https://github.com/Esri/solutions-webappbuilder-widgets/tree/master/ERG

        ERG: {
            include: true,
            id: 'ERG',
            type: 'titlePane',
            position: 11,
            title: 'ERG',
            canFloat: true,
            resizable: true, // This widget is resizable when floating
            open: false,
            path: 'jimu/BaseWidgetPanel', // Note the path
            options: {
                // use the WAB WidgetManager (required)
                widgetManager: true,

                // This widget requires some height to work properly
                style: 'height:680px;',

                config: {
                    widgets: [
                        {
                            id: 'ERGWABWidget',
                            uri: 'widgets/ERG/Widget'  // Note the path
                        }
                    ]
                }
            }
        }, 
tmcgee commented 8 years ago

The list may be shorter if we identify which widgets DON'T work. :)

ERS-Long commented 8 years ago

that is right! The reason i tested all those is because I need to use them pretty soon. :)

This is really really cool feature. I cannot express enough!!