projects/i-components/src/lib/components/accordion-item-content/accordion-item-content.component.ts
Angular Component for the AccordionItem.Content Control.
changeDetection | ChangeDetectionStrategy.OnPush |
selector | wm-accordion-item-content |
styleUrls | ./accordion-item-content.component.scss |
templateUrl | ./accordion-item-content.component.html |
Properties |
template |
Type : TemplateRef<any>
|
Decorators :
@ContentChild('contentTemplate')
|
Content Template definition of Component. |
templateComponent |
Type : any
|
Decorators :
@ContentChild('contentTemplateComponent')
|
Component inside the Content Template. |
import {
ChangeDetectionStrategy,
Component,
ContentChild,
TemplateRef,
} from '@angular/core';
import { AngularComponentId, ComponentId } from '@mobilize/wms-framework';
/**
*Angular Component for the AccordionItem.Content Control.
*
* @export
* @class AccordionItemContentComponent
*/
@Component({
selector: 'wm-accordion-item-content',
templateUrl: './accordion-item-content.component.html',
styleUrls: ['./accordion-item-content.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
@ComponentId([AngularComponentId.accordionItemContent])
export class AccordionItemContentComponent {
/**
* Content Template definition of Component.
*
* @type {TemplateRef<any>}
* @memberof AccordionItemContentComponent
*/
@ContentChild('contentTemplate')
template: TemplateRef<any>;
/**
* Component inside the Content Template.
*
* @type {any}
* @memberof AccordionItemContentComponent
*/
@ContentChild('contentTemplateComponent')
templateComponent: any;
}
<ng-container></ng-container>
./accordion-item-content.component.scss