Popover service to keep state of opened popover. Allowing user to hide certain or all popovers
Parameters:
Name | Type | Description |
---|---|---|
popoverList |
Array | The popover that's currently being shown |
registered |
Array | Object storing all the registered popover DOM elements |
last |
function | Get data of the last popover
|
register |
function | Register a popover with an id and an element
|
unregister |
function | Remove id and element from registered list of popover
|
add |
function | Add a new popover to opened list
|
pop |
function | Get and remove the last popover from list
|
show |
function | Show and position a registered popover
|
getById |
function | Get opened popover object by id
|
reposition |
function | Update size and position of an opened popover
|
hide |
function | Hide a certain popover. If no selector is provided, the last opened popover is hidden
|
hideAll |
function | Hide all popovers |