Home > OS >  How to enable specific sorting on ng zorro table?
How to enable specific sorting on ng zorro table?

Time:08-04

i have a table sorting ascending

Table sorting descending

table sorting descending

But this:

table sorting null Will return 'null' in the backend server and i want to remove that functionality from ng zorro

Is it possible to do it in ngZorro table?

CodePudding user response:

According to the documentation you can setup the properties:

[nzSortOrder]   
     Sort direction 'ascend' | 'descend' | null  
[nzSortDirections] 
     Supported sort order, could be 'ascend', 'descend', null   Array<'ascend' | 'descend' | null>  
     Default ['ascend', 'descend', null]

https://ng.ant.design/components/table/en (Sort property)

  • Related