Landing page: https://floating-boxes.herokuapp.com/
In order to use the library, load the index.js
under the lib
folder.
The goal of this project is to build a library that allows the developers to easily add non-modal pop-up windows to the web pages, which are named floating boxes. This library is implemented with a collection of floating boxes, that facilitates the object management process when building web pages.
Id of the set of boxes set when FloatingBoxGenerator is created.
A dictionary of FloatingBox objects having each object mapped to its id.
parameters: setId, boxId description: Create a FloatingBox element with the given set id and box id (div id: 'floating-box-' + setId + '-' + boxId), add it to the document body
parameteres:id, name
description: Set name to the box with given id
parameteres: id
description: Return the box element with the given id
description: Return the set id of the current FloatingBoxGenerator instance
description: Return the array of FloatingBox
parameteres: id
description: Return the DOM element of the box matching the given id
parameteres: element
description: enable dragging by the given element, if no element is given, enable dragging for the whole box
default elements: 'corner', 'border-top', 'border-right', 'border-bottom', 'border-left'
parameteres: id, element
description: enable dragging by the given element for the box with the given id
default elements: 'corner', 'border-top', 'border-right', 'border-bottom', 'border-left'
parameteres: element
description: disable dragging by the given element, if no element is given, disable dragging for the whole box
default elements: 'corner', 'border-top', 'border-right', 'border-bottom', 'border-left'
parameteres: id, element
description: disable dragging for the box with the given id of the given element
default elements: 'corner', 'border-top', 'border-right', 'border-bottom', 'border-left'
description: enable resizing for all boxes
parameteres: id
description: enable resizing for the box with the given id
description: disable resizing for all boxes
description: remove all added boxes
parameteres: id
description: remove the box with the given id from the html and dictionary of FloatingBoxes
parameteres: id
description: hide the box with the given id on the web page
parameteres: id
description: unhide the box with the given id on the web page
parameteres: object: HTMLDOMElement, id
description: add the given object to the box with the specified id
parameteres: id
description: return the HTMLDOMElement of the box with given id
Id of the set of boxes set the box belongs to
Id of the box set when the FloatingBox instance is created
A string represents the name set to the box