BlockBuilder
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
async getBlockInstance(blockType: String): AbstractBlock Returns an |
Inherited Summary
From class AbstractService | ||
public |
container: * |
|
public |
serviceName: * |
|
public |
checkDependencies(dependencies: *[]) |
|
public |
getService(serviceName: *): * |
|
public |
hasService(serviceName: *): * |
|
public |
init() |
From class AbstractBlockBuilder | ||
public |
async getBlockInstance(blockType: String): AbstractBlock | null Returns an |
Public Constructors
Public Methods
public async getBlockInstance(blockType: String): AbstractBlock source
Returns an AbstractBlock
child class instance
according to the nodeTypeName or an AbstractBlock as default.
Comment out the default case if you don’t want a default block to be instantiated for each block.
Params:
Name | Type | Attribute | Description |
blockType | String |