libs/rucken/todo-web/src/lib/entities/projects/projects-grid-modal/projects-grid-modal.component.ts
BaseEntityListModalComponent
changeDetection | ChangeDetectionStrategy.OnPush |
selector | projects-grid-modal |
templateUrl | ./projects-grid-modal.component.html |
Properties |
constructor()
|
grid |
Type : ProjectsGridComponent
|
Decorators :
@ViewChild('grid')
|
import { ChangeDetectionStrategy, Component, Input, ViewChild } from '@angular/core';
import { BaseEntityListModalComponent } from '@rucken/core';
import { Project } from '@rucken/todo-core';
import { BsModalRef } from 'ngx-bootstrap/modal';
import { ProjectsGridComponent } from '../projects-grid/projects-grid.component';
import { BindIoInner } from 'ngx-bind-io';
@BindIoInner()
@Component({
selector: 'projects-grid-modal',
templateUrl: './projects-grid-modal.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class ProjectsGridModalComponent extends BaseEntityListModalComponent<Project> {
@ViewChild('grid')
grid: ProjectsGridComponent;
@Input()
apiUrl?: string = undefined;
constructor() {
super();
}
}
<entity-grid-modal [bindIO]>
<projects-grid
[apiUrl]="apiUrl"
#grid>
</projects-grid>
</entity-grid-modal>