I have component with table, that receive RowData from another component by @Input. How can i get instance of current table.
That's part of my html
<ngx-datatable
class="material"
[rows]="inputData"
[columns]="columns">
</ngx-datatable>
And component ts
export class GridComponent implements OnChanges {
@Input() inputData: [object];
columns1 = [
{ prop: 'name' },
{ name: 'Gender' },
{ name: 'Company' }
];
}