Controller
Hierarchy
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
options: ControllerOptions
Returns Controller
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
mobileCloseBtn
name
opened
options
optionalparent
optionalposition
resizeSensor
scrollable
state
Type declaration
[key string]: any
styles
template
templates
Type declaration
main: HandlebarsTemplateDelegate<any>
toolbar: HandlebarsTemplateDelegate<any>
uid
withToolbar
Methods
adjustHeight
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
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
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
Adjusts height of the container to fit content.