Closed jmblank09 closed 6 years ago
Hi @jmblank09 , im not sure but you could try calling the table objet to redraw, in your class you can have a field like this:
@ViewChild(GenericTableComponent) private myTable: GenericTableComponent<any, any>;
then after you update your data objet try calling redraw:
this.myTable.redraw();
please let me know if that help you, again i am not sure , just trying to help...
Thank you! It worked!
Last question. Is It possible to change the width style of a specific column. Also, when i add a long text, the text is overlapping other column.
hi @jmblank09 i am sorry i have been very busy this week, you can add custom css using the special selectors for angular :hot ::ng-deep so lets say you have a colum with class description-colum
:host ::ng-deep tr > td.description-column {
width: 200px;
}
that should work, although i think there is a better way, just i haven check the documentation yet Thanks
My update is not reflecting on the table When i updated the data object in the configobject in the constructor.