Constructs an instance of UFFloater. Note that the dimensional properties are not set immediately. The floater is added to the DOM to get the dimensions and then removed again.
Options to use for the floater
Height of content in pixels. This value is not immediately available, but becomes known after a few milliseconds. The value is 0 if the content is a string.
Width of content in pixels. This value is not immediately available, but becomes known after a few milliseconds. The value is 0 if the content is a string.
The current enabled state. When disabled the floater will ignore click events.
Height of floater in pixels. This value is not immediately available, but becomes known after a few milliseconds.
Returns if the floater is visible.
True if the floater is part of the DOM and visible.
Width of the floater in pixels. This value is not immediately available, but becomes known after a few milliseconds.
Destroys the floater and removes all listeners.
Handles mouse up / touch end on the document.
Tries to hide the floater. If the floater is hidden successful, it is removed from the DOM.
True if floater is hidden or busy hiding, false if UFFloaterOptions.canHide returned false.
Closes the floater if it can be closed.
Event that resulted in call to hide or null if the action was triggered via a direct call
True if floater is hidden or busy hiding, false if floater could not be closed.
Sets new element(s) to position the floater to and then show the floater. It is a combination of setOptions and show
Element(s) to position to
Refreshes the contents and then refreshes the position if the float is visible.
Updates one or more options.
New options to set
Shows the floater.
Refreshes the position of the floater if it is visible.
UFFloater is a class to show a floating element shown on top of the DOM.
The class can be used to show a floater somewhere in the browser or relative to a certain element.
The class uses the css class 'uf-floater', make sure no css class style exists with that name.