w2ui
Home
Get started
Demos
Docs
Blog
Support
Layout
Grid
Toolbar
Sidebar
Tabs
Form
Popup
Utilities
ver 1.3
ver 1.4
ver 1.5
ver 2.0
General
Overview
Events
Properties
Methods
Related
Dialogs
Overlays
w2popup.defaults
Default settings for the popup.
Object, default - see below
The code below shows the initial object:
defaults: { title : '', // html for title - empty by default body : '', // html for body - empty by default buttons : '', // html for buttons - empty by default actions : {}, // object with actions (buttons on the bottom) width : 500, // width of the popup height : 300, // height of the popup style : '', // additional styles color : '#000', // color of the screen lock opacity : 0.4, // opacity of the screen lock speed : 0.3, // speed popup appears modal : false, // if modal, it cannot be closed by clicking on the screen lock maximized : false, // by default it is not maximized keyboard : true, // will close popup on ESC if not modal showClose : true, // show closed button by default showMax : false, // do not show max button by default transition : null, // no content transition by default multiple : false // if popup already open, opens as a message },
Each time you open a popup a set of default settings will be used plus whatever properties you provide.
User Comments
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus