Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WAB widgets working without anything code change #1

Closed
ERS-Long opened this issue Apr 18, 2016 · 6 comments
Closed

WAB widgets working without anything code change #1

ERS-Long opened this issue Apr 18, 2016 · 6 comments

Comments

@ERS-Long
Copy link

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
Copy link
Author

ERS-Long commented Apr 18, 2016

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
Copy link
Author

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
Copy link
Member

tmcgee commented Apr 18, 2016

Nice!

@ERS-Long ERS-Long changed the title another WAB widget working without anything code change WAB widgets working without anything code change Apr 18, 2016
@ERS-Long
Copy link
Author

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
Copy link
Member

tmcgee commented Apr 18, 2016

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

@ERS-Long
Copy link
Author

ERS-Long commented Apr 18, 2016

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!!

@tmcgee tmcgee closed this as completed Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants