projects/i-components/src/lib/components/hierarchical-data-template/hierarchical-data-template.component.ts
Component definition for hierarchicaldatatemplate.
selector | wm-hierarchical-data-template |
Properties |
|
Inputs |
constructor()
|
Creates an instance of HierarchicalDataTemplateComponent. |
itemsSource | |
Type : any
|
|
Sets the itemSource property of the tree |
name | |
Type : any
|
|
Sets the name of the HierarchicalDataTemplate |
itemsSource |
Type : any
|
Decorators :
@Input()
|
Sets the itemSource property of the tree |
Public itemTemplate |
Type : QueryList<any>
|
Decorators :
@ContentChildren('itemTemplate')
|
Template reference with the content |
name |
Type : any
|
Decorators :
@Input()
|
Sets the name of the HierarchicalDataTemplate |
import { Component, ContentChildren, Input, QueryList } from '@angular/core';
/**
* Component definition for hierarchicaldatatemplate.
*
* @export
* @class HierarchicalDataTemplateComponent
*/
@Component({
selector: 'wm-hierarchical-data-template',
template: '',
})
export class HierarchicalDataTemplateComponent {
/**
* Template reference with the content
*
* @type {QueryList<any>}
* @memberof HierarchicalDataTemplateComponent
*/
@ContentChildren('itemTemplate')
public itemTemplate: QueryList<any>;
/**
* Sets the name of the HierarchicalDataTemplate
*
* @type {*}
* @memberof HierarchicalDataTemplateComponent
*/
@Input()
name: any;
/**
* Sets the itemSource property of the tree
*
* @type {*}
* @memberof HierarchicalDataTemplateComponent
*/
@Input()
itemsSource: any;
/**
* Creates an instance of HierarchicalDataTemplateComponent.
*
* @memberof HierarchicalDataTemplateComponent
*/
constructor() {}
}