tmcgee/cmv-widgets

View on GitHub
config/disclaimer.js

Summary

Maintainability
A
0 mins
Test Coverage
define({
    isDebug: false,

    mapOptions: {
        basemap: 'streets',
        center: [-96.59179687497497, 39.09596293629694],
        zoom: 5,
        sliderStyle: 'small'
    },

    titles: {
        header: 'CMV Disclaimer Widget',
        subHeader: 'This is an example of using a disclaimer',
        pageTitle: 'CMV Disclaimer Widget'
    },

    panes: {
        left: {
            collapsible: false,
            style: 'display:none'
        }
    },
    collapseButtonsPane: 'center', //center or outer

    operationalLayers: [],

    widgets: {
        disclaimer: {
            include: true,
            id: 'disclaimer',
            type: 'floating',
            path: 'widgets/Disclaimer',
            title: 'Attention!!!',
            iconClass: 'fas fa-exclamation-circle',
            preload: true,
            paneOptions: {
                className: 'floating-disclaimer',
                style: 'height:320px;width:350px;'
            },
            options: {

                // you can customize the button text
                i18n: {
                    //    accept: 'Arghhhh!',
                    //    decline: 'Run Away!'
                },

                // you can put your content right in the config
                //content: '<div align="center" style="background-color:black;color:white;font-size:18px;padding:20px;">Abandon all hope, ye who enter here...<br/><img src="http://fc06.deviantart.net/fs5/i/2004/313/2/5/Captain_Jolly_Roger_by_ramiusraven.jpg" style="width:160px;margin:25px;" /></div>'

                // or you can provide the url for another page with the content
                href: 'config/disclaimer.html'

                // the url to go to, if the user declines
                //declineHref: 'http://esri.com/'

            }

        }
    }
});