PopoverController
Hierarchy
- Controller
- PopoverController
Index
Constructors
Properties
Methods
- adjustHeight
- adjustScreenPosition
- close
- destroy
- getMainTemplate
- getToolbarTemplate
- getWrapperTemplate
- init
- is
- moveSrceenPositionBy
- open
- redraw
- render
- resize
- setEventHandlers
- setMainTemplate
- setOptions
- setPoint
- setScreenPosition
- setState
- setStyles
- updateScroll
- updateTopShift
- viewDidAppear
- viewDidDisappear
- viewDidLoad
- viewDidRedraw
- viewWillRedraw
Constructors
constructor
Parameters
options: PopoverOptions
Returns PopoverController
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
id
loaded
map
mapObject
middlewareOptions
middlewares
mobileCloseBtn
name
opened
options
optionalparent
point
optionalposition
resizeSensor
screenPoint
scrollable
state
Type declaration
[key string]: any
styles
template
templates
Type declaration
main: HandlebarsTemplateDelegate<any>
toolbar: HandlebarsTemplateDelegate<any>
uid
withToolbar
yShift
Methods
adjustHeight
Adjusts height of the container to fit content.
Returns void
adjustScreenPosition
Adjsuts position of the popver.
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
moveSrceenPositionBy
Moves popover by given numbers
Parameters
deltaX: number
deltaY: number
Returns void
open
Returns void
redraw
Redraws the container.
Returns void
render
Renders the content.
Returns void
resize
Returns void
setEventHandlers
Sets event handlers
Returns void
setMainTemplate
Sets the template for the body
Parameters
template: any
Returns any
setOptions
Parameters
options: Record<string, any>
Returns void
setPoint
Sets a point where the popover should be shown
Parameters
point: SVGPoint
[x,y]
Returns void
setScreenPosition
Set popover position by given numbers
Parameters
x: number
y: 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
viewDidLoad
This method fires when the view is fully loaded. Can be used to do any final actions.
Returns void
viewDidRedraw
Returns void
viewWillRedraw
Returns void
Creates a scrollable popover in a map container.