2.5.0 • Published 6 years ago

jquery.edbox v2.5.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

jQuery edbox

Responsive and lightweight modal plugin. Check for examples at the plugin page here

Download

npm: npm install jquery.edbox

yarn: yarn add jquery.edbox

zip: download .zip file

Options

OptionTag attributeTypeDefaultDescription
targetdata-box-targetstringnullDOM element
copydata-box-copybooleanfalseUse a copy of the element target instead of the element itself. Only works with target option
htmldata-box-htmlstringnullhtml and/or text
imagedata-box-imagestringnullimage path
urldata-box-urlstringnullurl path (files, pages, etc...)
successdata-box-successstringnullAlert success
infodata-box-infostringnullAlert info
warningdata-box-warningstringnullAlert warning
dangerdata-box-dangerstringnullAlert danger
headerdata-box-headerstringnullOptional header tag - accepts html and/or text
footerdata-box-footerstringnullOptional footer tag - accepts html and/or text
widthdata-box-widthnumbernullSet a fixed width value to the modal
heightdata-box-heightnumbernullSet a fixed height value to the modal
addClassdata-box-add-classstringnullAdds a especific class to the modal
closedata-box-closebooleantrueMakes the modal closable or not.
animationdata-box-animationbooleantrueMakes the modal animable or not.
animateOpendata-box-animate-openstring'edbox-animate-open'CSS animation class on open
animateClosedata-box-animate-closestring'edbox-animate-close'CSS animation class on close
beforeOpendata-box-before-openfunctionfunction() {}Function callback before open the modal
afterOpendata-box-after-openfunctionfunction() {}Function callback after open the modal
beforeClosedata-box-before-closefunctionfunction() {}Function callback before close the modal
afterClosedata-box-after-closefunctionfunction() {}Function callback after close the modal

Methods

//set edbox for the set of matched elements
$('.myModalLink').edbox({ options });
$('[edbox]').edbox({ options });

//Init without assigning any element
$.edbox({ options });

//Make custom settings as defaults
$.edboxSettings({ options });

//Close event
$.edbox('close');

Change Log

v2.5.0

  • JS - New data-box-clone tag attr option
  • JS - New "edbox" tag attr option

v2.3.0

  • JS - Now it's possible to use all options as tag attribute

v2.2.3

  • JS - Some adjustments for better browser compatibility

v2.2.2

  • JS - CSSImproved close button positioning based on scrollbar width
  • JS - Other small improvements
  • CSS - New helper class added to the parent box if option close is false

v2.2.1

  • JS - Improved url option;
  • JS - Improved header option;
  • JS - Improved validations;
  • CSS - Adjustments;

v2.2.0

  • JS - Fixed image load;
  • JS - Fixed callback afterClose;
  • JS - New alert options like bootstrap;
  • CSS - New CSS properties and adjustments;

v2.1.0

  • JS - New settable attributes "data-box-header" and "data-box-footer";
  • CSS - Adjustments;

v2.0.0

  • New features;
  • Easy to use;
  • Easy customization;
  • CSS animations;
  • SASS file;
2.5.0

6 years ago

2.4.0

6 years ago

2.3.0

7 years ago

2.2.3-rc2

7 years ago

2.2.3-rc

7 years ago

2.2.3

7 years ago

2.2.2

7 years ago

2.2.1

7 years ago

2.2.0-rc

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago