badge_image
static
void
badge_image
(
pBadgeURL
,
pSelectorOrNode
,
pPosition
)
Badge an image: adds an image (badge) over another image (target).
- Parameters:
-
pBadgeURL <url>
url of the badge image; the image should be a file with a transparent background. -
pSelectorOrNode <string|node>
the selector to find the target image to badge. (See MUI.util.dom.get_objects for a description of selectors) OR the target image directly. -
pPosition <string>
one of: MUI.util.ktop_right (default), MUI.util.ktop_center, MUI.util.ktop_left, MUI.util.kbottom_right, MUI.util.kbottom_center or MUI.util.kbottom_left
- Returns:
void
badge_images
static
void
badge_images
(
pBadgeURL
,
pPredicate
,
pPosition
)
Badge a collection of images: adds an image (badge) over another image (target).
- Parameters:
-
pBadgeURL <url>
url of the badge image; the image should be a file with a transparent background. -
pPredicate <string>
a selector (See MUI.util.dom.get_objects for a description of selectors) or an array of object IDs. -
pPosition <string>
one of: MUI.util.ktop_right (default), MUI.util.ktop_center, MUI.util.ktop_left, MUI.util.kbottom_right, MUI.util.kbottom_center or MUI.util.kbottom_left
- Returns:
void
create_pop_up
static
button
create_pop_up
(
pText
,
pImage
,
pPlaceholderID
,
pPopUpID
,
pPopUpFc
)
Create a pop-up div; these pop-ups are not blocked by pop-up blockers, as they are not in a separate window.
- Parameters:
-
pText <string>
title of the button to show the pop-up. -
pImage <url>
url of the image used on the button. Optional. -
pPlaceholderID <string>
id of the element into which the button shoudl be placed. -
pPopUpID <string>
id of the div to show as the pop-up content. If the div does not exist, one will be created. -
pPopUpFc <function>
function to be called when the button is clicked.
- Returns:
button
- a reference to the created button; the button will have a "popup" property, for quick access to the popup div.