projects/i-components/src/lib/components/xam-grid/XamColumnLayout.component.ts
Component emulating the hierarchy declaration in SilverLight.
selector | wm-xam-column-layout |
template |
|
Properties |
Inputs |
key | |
Type : string
|
|
The key property for the nested data collection. |
columns |
Type : QueryList<XamGridColumnComponent>
|
Decorators :
@ContentChildren(XamGridColumnComponent)
|
reference to the xamGridColumnComponent collection |
key |
Type : string
|
Decorators :
@Input()
|
The key property for the nested data collection. |
import { Component, ContentChildren, Input, QueryList } from '@angular/core';
import { XamGridColumnComponent } from '../xam-grid-column/xam-grid-column.component';
/**
* Component emulating the hierarchy declaration in SilverLight.
*
* @export
* @class XamColumnLayoutComponent
*/
@Component({
selector: 'wm-xam-column-layout',
template: `<ng-content></ng-content>`,
})
export class XamColumnLayoutComponent {
/**
* The key property for the nested data collection.
*
* @type {string}
* @memberof XamColumnLayoutComponent
*/
@Input()
key: string;
/**
* reference to the xamGridColumnComponent collection
*
* @type {QueryList<XamGridColumnComponent>}
* @memberof XamColumnLayoutComponent
*/
@ContentChildren(XamGridColumnComponent)
columns: QueryList<XamGridColumnComponent>;
}