Class: ToolbarController
Extends
Constructors
new ToolbarController()
new ToolbarController(options): ToolbarController
Parameters
Parameter | Type |
---|---|
options | ToolbarControllerOptions |
Returns
Overrides
Methods
adjustHeight()
adjustHeight(): void
Adjusts height of the container to fit content.
Returns
void
Inherited from
close()
close(): void
Closes the container
Returns
void
Inherited from
destroy()
destroy(): void
Destroys the controller.
Returns
void
Inherited from
getMainTemplate()
getMainTemplate(): string
This method must be overriden by a child class and to return an HTML code for the main content
Returns
string
Inherited from
getToolbarTemplate()
getToolbarTemplate(): string
This method must be overriden by a child class and return an HTML code for the toolbar.
Returns
string
Inherited from
getWrapperTemplate()
getWrapperTemplate(): string
This method must be overriden by a child class and to return an HTML code for the main content
Returns
string
Inherited from
init()
init(): void
Initialization
Returns
void
Inherited from
is()
is(name): boolean
Parameters
Parameter | Type |
---|---|
name | string |
Returns
boolean
Inherited from
open()
open(): void
Returns
void
Inherited from
redraw()
redraw(): void
Redraws the container.
Returns
void
Inherited from
render()
render(): void
Renders the content.
Returns
void
Inherited from
resize()
resize(): void
Returns
void
Inherited from
setEventHandlers()
setEventHandlers(): void
Sets event handlers
Returns
void
Overrides
setMainTemplate()
setMainTemplate(template): any
Sets the template for the body
Parameters
Parameter | Type |
---|---|
template | any |
Returns
any
Inherited from
setOptions()
setOptions(options): void
Parameters
Parameter | Type |
---|---|
options | Record <string , any > |
Returns
void
Inherited from
setState()
setState(state?, overwrite?): void
Parameters
Parameter | Type | Default value |
---|---|---|
state ? | object | undefined |
overwrite ? | boolean | false |
Returns
void
Inherited from
setStyles()
setStyles(styles): void
Parameters
Parameter | Type |
---|---|
styles | Partial <CSSStyleDeclaration > |
Returns
void
Inherited from
show()
show(controllerName): void
Parameters
Parameter | Type |
---|---|
controllerName | string |
Returns
void
updateScroll()
updateScroll(): void
Updates the size of the scrollable container. Automatically fires when window size or content size changes.
Returns
void
Inherited from
updateTopShift()
updateTopShift(): void
Updates top shift of the main container depending on toolbar height
Returns
void
Inherited from
viewDidAppear()
abstract viewDidAppear(): void
Fires when the view appears after being hidden. Should be overriden by a child class.
Returns
void
Inherited from
viewDidDisappear()
abstract viewDidDisappear(): void
This method fires when the view disappears. Should be overriden by a child class.
Returns
void
Inherited from
viewDidLoad()
viewDidLoad(): void
This method fires when the view is fully loaded. Can be used to do any final actions.
Returns
void
Inherited from
viewDidRedraw()
viewDidRedraw(): void
Returns
void
Overrides
viewWillRedraw()
viewWillRedraw(): void
Returns
void
Inherited from
Properties
_canClose
_canClose: boolean;
Inherited from
autoresize
autoresize: boolean;
Inherited from
buttons
buttons: object;
Index Signature
[key
: string
]: HTMLButtonElement
classList
classList: string[];
Inherited from
closable
closable: boolean;
Inherited from
containers
containers: object;
contentView?
optional contentView: HTMLElement;
contentWrap?
optional contentWrap: HTMLElement;
contentWrap2?
optional contentWrap2: HTMLElement;
main?
optional main: HTMLElement;
parent
parent: HTMLElement;
sizer?
optional sizer: HTMLElement;
toolbar?
optional toolbar: HTMLElement;
view?
optional view: HTMLElement;
Inherited from
destroyed
destroyed: boolean;
Inherited from
eventOptions
eventOptions: object & object;
Type declaration
afterClose
afterClose: BaseEventHandler<object>;
Type declaration
controller
controller: BaseController;
afterLoad
afterLoad: BaseEventHandler<object>;
Type declaration
controller
controller: BaseController;
afterRedraw
afterRedraw: BaseEventHandler<object>;
Type declaration
controller
controller: BaseController;
afterShow
afterShow: BaseEventHandler<object>;
Type declaration
controller
controller: BaseController;
afterUnload
afterUnload: BaseEventHandler<object>;
Type declaration
controller
controller: BaseController;
beforeClose
beforeClose: BaseEventHandler<object>;
Type declaration
controller
controller: BaseController;
beforeLoad
beforeLoad: BaseEventHandler<object>;
Type declaration
controller
controller: BaseController;
beforeRedraw
beforeRedraw: BaseEventHandler<object>;
Type declaration
controller
controller: BaseController;
beforeShow
beforeShow: BaseEventHandler<object>;
Type declaration
controller
controller: BaseController;
resize
resize: BaseEventHandler<object>;
Type declaration
controller
controller: BaseController;
Inherited from
events
events: Events;
Inherited from
fullscreen
fullscreen: object;
lg
lg: boolean;
md
md: boolean;
sm
sm: boolean;
Inherited from
loaded
loaded: boolean;
Inherited from
map
map: MapSVGMap;
Inherited from
middlewareOptions
middlewareOptions: Middleware[];
Inherited from
middlewares
middlewares: MiddlewareList;
Inherited from
mobileCloseBtn
mobileCloseBtn: HTMLElement;
Inherited from
name
name: string;
Inherited from
noPadding?
optional noPadding: boolean;
Inherited from
opened
opened: boolean;
Inherited from
openedFullscreen
openedFullscreen: boolean = false;
Inherited from
options
options: unknown;
Inherited from
parent?
optional parent: ObjectWithEvents;
Inherited from
position?
optional position: "absolute" | "relative" | "fixed";
Inherited from
resizeSensor
resizeSensor: ResizeSensor;
Inherited from
scrollable
scrollable: boolean;
Inherited from
state
state: object;
Index Signature
[key
: string
]: any
Inherited from
styles
styles: Partial<CSSStyleDeclaration>;
Inherited from
template
template: string;
Inherited from
templates
templates: object;
main
main: HandlebarsTemplateDelegate<any>;
toolbar
toolbar: HandlebarsTemplateDelegate<any>;
Inherited from
uid
uid: number;
Inherited from
withToolbar
withToolbar: boolean;