Tooltip
Hierarchy
- Controller
- Tooltip
Index
Constructors
Properties
Methods
- adjustHeight
- close
- destroy
- getMainTemplate
- getToolbarTemplate
- getWrapperTemplate
- init
- is
- move
- open
- redraw
- render
- resize
- setEventHandlers
- setMainTemplate
- setOptions
- setPositionToCursor
- setScreenPoint
- setScreenPosition
- setSize
- setState
- setStyles
- updateScroll
- updateTopShift
- viewDidAppear
- viewDidDisappear
- viewDidRedraw
- viewWillRedraw
Constructors
constructor
Parameters
options: TooltipOptions
Returns Tooltip
Properties
_canClose
autoresize
classList
closable
containers
Type declaration
optionalcontentView?: HTMLElement
optionalcontentWrap?: HTMLElement
optionalcontentWrap2?: HTMLElement
optionalmain?: HTMLElement
parent: HTMLElement
optionalsizer?: HTMLElement
optionaltoolbar?: HTMLElement
optionalview?: HTMLElement
destroyed
eventOptions
events
fullscreen
Type declaration
lg: boolean
md: boolean
sm: boolean
loaded
map
middlewareOptions
middlewares
mirror
Type declaration
[key string]: number
mobileCloseBtn
name
opened
options
optionalparent
posOriginal
Type declaration
[key string]: string
posShifted
Type declaration
[key string]: string
posShiftedPrev
Type declaration
[key string]: string
optionalposition
positionToCursor
resizeSensor
screenPoint
scrollable
state
Type declaration
[key string]: any
styles
template
templates
Type declaration
main: HandlebarsTemplateDelegate<any>
toolbar: HandlebarsTemplateDelegate<any>
uid
withToolbar
Methods
adjustHeight
Adjusts height of the container to fit content.
Returns void
close
Closes the container
Returns void
destroy
Destroys the controller.
Returns void
getMainTemplate
This method must be overriden by a child class and to return an HTML code for the main content
Returns string
getToolbarTemplate
This method must be overriden by a child class and return an HTML code for the toolbar.
Returns string
getWrapperTemplate
This method must be overriden by a child class and to return an HTML code for the main content
Returns string
init
Initialization
Returns void
is
Parameters
name: string
Returns boolean
move
Parameters
e: Event
Returns void
open
Returns void
redraw
Redraws the container.
Returns void
render
Renders the content.
Returns void
resize
Returns void
setEventHandlers
Sets event handlers for the popover
Returns void
setMainTemplate
Sets the template for the body
Parameters
template: any
Returns any
setOptions
Parameters
options: Record<string, any>
Returns void
setPositionToCursor
Parameters
position: string
Returns void
setScreenPoint
Sets a point where the popover should be shown
Parameters
x: number
y: number
Returns void
setScreenPosition
Set tooltip position by given coordinates
Parameters
x: number
y: number
Returns void
setSize
Parameters
minWidth: number
maxWidth: number
Returns void
setState
Parameters
optionalstate: {}
overwrite: boolean = false
Returns void
setStyles
Parameters
styles: Partial<CSSStyleDeclaration>
Returns void
updateScroll
Updates the size of the scrollable container. Automatically fires when window size or content size changes.
Returns void
updateTopShift
Updates top shift of the main container depending on toolbar height
Returns void
viewDidAppear
Fires when the view appears after being hidden. Should be overriden by a child class.
Returns void
viewDidDisappear
This method fires when the view disappears. Should be overriden by a child class.
Returns void
viewDidRedraw
Returns void
viewWillRedraw
Returns void
Creates a scrollable popover in a map container.