List of methods
Method | Description | Available from version |
---|---|---|
new BX.SpotLight | Constructor | |
spotlight.show | Shows pulsating circle on the page. | |
spotlight.close | Hides pulsating circle on a page. | |
spotlight.adjustPosition | Recalculates coordinates for pulsating circle and moves it to a new location. | |
spotlight.save | Saves a hint view by the current user. | |
spotlight.setTargetElement(targetElement) | Sets element next to which a pulsating circle is displayed.
| |
spotlight.getTargetElement | Returns DOM element next to which the pulsating circle is positioned. | |
spotlight.bindEvents(events) | Sets an event handler.
| |
spotlight.unbindEvents(events) | Deletes an event handler.
| |
spotlight.getId | Returns a hint's unique ID. | |
spotlight.setId(id) | Sets a hint's unique ID.
| |
spotlight.getZindex | Returns z-index for pulsating circle. | |
spotlight.setZindex(zIndex) | Sets z-index for pulsating circle.
| |
spotlight.getContent | Returns content for popup dialog. | |
spotlight.setContent(content) | Sets content for popup dialog.
| |
spotlight.getTargetVertex | Returns location point. | |
spotlight.setTargetVertex(vertex) | Sets location point.
| |
spotlight.getOffsetLeft | Returns pulsating circle offset relative to x-axis location point. | |
spotlight.setOffsetLeft(offset) | Sets pulsating circle pixel offset relative to x-axis.
| |
spotlight.getOffsetTop | Returns pulsating circle offset relative y-axis location point. | |
spotlight.setOffsetTop(offset) | Sets pulsating circle pixel offset relative to y-axis.
| |
spotlight.getLightMode | Returns true, when pulsating circle color is white. | |
spotlight.setLightMode([lightMode=true]) | Sets light mode.
| |
spotlight.getAutoSave | When true, registers a displayed dialog with hint in the current user options. Otherwise, false. | |
spotlight.setAutoSave([autoSave=true]) | Enables mode for saving viewed hint. | |
spotlight.getObserverTimeout | Returns milliseconds timeout for dimensions check. | |
spotlight.setObserverTimeout(timeout) | Sets dimensions check timeout in milliseconds.
| |
spotlight.getPopup | Returns link (object type BX.PopupWindow) to popup dialog with a hint. | |
spotlight.getTargetContainer | Returns link (DOM-object) for pulsating circle container. |
© «Bitrix24», 2001-2024