src/lib/layout/layout.directive.ts
The Layout directive. This directive can be added to any component for layout handling (save/load). When added to a common DOM node, a new node will be created on layout model: use this to group template layouts by custom nodes (e.g. a div with 2 components). Components that can save/load layouts MUST implement OnLayout (or OnExtendedLayout) interface in order to work with this directive.
OnExtendedLayoutInternal
OnDestroy
AfterViewInit
| Providers |
LayoutModel
|
| Selector | [cmf-core-controls-layout] |
Properties |
|
Methods |
|
Accessors |
constructor(dom: DOMService, util: UtilService, _selfComponent: Type
|
||||||||||||||||||
|
Parameters :
|
| Public componentImplementsOnExtendedLayout |
componentImplementsOnExtendedLayout()
|
|
True if component where directive is implements OnExtendedLayout
Returns :
boolean
|
| Public getDefaultLayout |
getDefaultLayout()
|
|
Get default layout object for current Layout
Returns :
InternalLayoutBaseDef
|
| Public ngAfterViewInit |
ngAfterViewInit()
|
|
ng.ngAfterViewInit
Returns :
void
|
| Public ngOnDestroy |
ngOnDestroy()
|
|
ng.OnDestroy Remove node from Layout Model tree
Returns :
void
|
| Public onLoadExtendedLayout | ||||||||
onLoadExtendedLayout(layoutDef: InternalLayoutBaseDef)
|
||||||||
|
Get onLoadLayout Promise for current component or call onLoadInternalLayout if available (override).
Parameters :
Returns :
Promise<void>
|
| Public onSaveExtendedLayout |
onSaveExtendedLayout()
|
|
Get onSaveLayout Promise for current component or call onSaveInternalLayout if available (override).
Returns :
Promise<InternalLayoutBaseDef>
|
| Public childModel |
Type : LayoutModel
|
| Public parentModel |
Type : LayoutModel
|
Decorators :
@Optional()
|
| layoutId | ||||||
getlayoutId()
|
||||||
setlayoutId(value: string)
|
||||||
|
Parameters :
Returns :
void
|