Skip to content

keenan35i/Ultimate-Popup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Up (ultimate popup)

Ultimate popup was developed to provide a lightweight versitial popup library. Featuring dragable windows with snap magnetic window alignment, multi sized popups, tabable windows, cancelable overlay, and more.

Options {}

Avalible options to customize the popup, options is a json object passed to the Up.open function.

  • size: string (small/medium/large/content-driven) Default: empty string,
  • title: string (title of popup) Default: empty string,
  • multiTab: Bool (true/false) Default: true,
  • dragable: Bool (true/false) Default: true,
  • overlay: Bool (true/false) Default: false,

open( content, options, callBack )

This method creates and opens a new popup it takes three arguments content, options, and callBack.

Example:

Up.open( content, options, callBack );

closePopup( popup )

This method closes a given popup, if popup is not given it will close the active popup.

Example:

Up.closePopup( popup );

closeAll()

This method closes all popups.

Example:

Up.closeAll();

openWindow( popup )

This method opens a minimized popup.

Example:

Up.openWindow( popup );

About

a versatile js popup library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published