datatables - How to freeze columns in PrimeNg data table - Angular 2? -
in primeng data table , possible freeze first few columns , have horizontal scroll-x rest ? want similar :
https://datatables.net/extensions/fixedcolumns/examples/initialisation/two_columns.html
<p-datatable [value]="..yoursource" [frozenwidth]="set frozen width in px" [unfrozenwidth]="set un frozen width in px"> -- frozen column <p-column [header]="" [frozen]="true"> <template> </template> </p-column> --unfrozen column <p-column> <p-column> </p-datatable>
Comments
Post a Comment