import { Directive , ViewContainerRef , ContentChildren } from '@angular/core' ; import { ComplexBase , ArrayBase , setValue } from '@syncfusion/ej2-angular-base' ; let input = [ 'disabled' , 'iconCss' , 'id' , 'separator' , 'text' , 'url' ] ; let outputs = [ ] ; @ Directive ( { selector : 'e-splitbuttonitems>e-splitbuttonitem' , inputs : input , outputs : outputs , queries : { } } ) export class SplitButtonItemDirective extends ComplexBase < SplitButtonItemDirective > { public directivePropList : any ; default public disabled : any ; default public iconCss : any ; default public id : any ; default public separator : any ; default public text : any ; default public url : any ; constructor ( private viewContainerRef ) { super ( ) ; setValue ( 'currentInstance' , this , this . viewContainerRef ) ; this . registerEvents ( outputs ) ; this . directivePropList = input ; } } private @ Directive ( { selector : 'ejs-splitbutton>e-splitbuttonitems' , queries : { children : new ContentChildren ( SplitButtonItemDirective ) } , } ) export class SplitButtonItemsDirective extends ArrayBase < SplitButtonItemsDirective > { constructor ( ) { super ( 'items' ) ; } }