AbstractBlock
Extends:
Direct Subclass:
Base class for creating block implementations.
Do not instanciate this class directly, create a sub-class.
Constructor Summary
Public Constructor | ||
public |
constructor(container: Object, blockName: String) Abstract block constructor. |
Member Summary
Public Members | ||
public |
Block id |
|
public |
Node name |
|
public |
page: AbstractPage | null Current page instance |
|
public |
rootElement: HTMLElement | null Container Root container HTMLElement for current block. |
|
public |
Node Type block name type |
Method Summary
Public Methods | ||
public |
destroy() Destroy current block. |
|
public abstract |
Unbind event block events. |
|
public abstract |
init() Basic members initialization for children classes. |
|
public abstract |
Bind load and resize events for this specific block. |
|
public abstract |
Called once all page blocks have been created. |
|
public abstract |
onResize() Called on window resize |
Inherited Summary
From class AbstractService | ||
public |
container: * |
|
public |
serviceName: * |
|
public |
checkDependencies(dependencies: *[]) |
|
public |
getService(serviceName: *): * |
|
public |
hasService(serviceName: *): * |
|
public |
init() |
Public Constructors
Public Members
Public Methods
public destroy() source
Destroy current block.
Do not forget to call super.destroy();
while extending this method.
public abstract destroyEvents() source
Unbind event block events.
Make sure you’ve used binded methods to be able to
off
them correctly.
Do not forget to call super.destroyEvents();
while extending this method.
public abstract init() source
Basic members initialization for children classes.
Do not search for page blocks here, use onPageReady
method instead
Override:
AbstractService#initpublic abstract initEvents() source
Bind load and resize events for this specific block.
Do not forget to call super.initEvents();
while extending this method.