NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.88k stars 3.94k forks source link

nzSortDirections global config #6613

Open serdartaylan opened 3 years ago

serdartaylan commented 3 years ago

What problem does this feature solve?

I am using a table in the application. I use sorting in almost all columns. and just ascend, descend. Typing [nzSortDirections] = "['ascend', 'descend']" in all tables and columns is quite tedious and tiring.

I request the nzSortDirections value to be defined as global settings.

What does the proposed API look like?

*

rxxy commented 3 years ago

+1 I need use 'asc' instead of 'ascend' in almost all columns.

rxxy commented 3 years ago

Expect to be able to configure this property globally

zorro-bot[bot] commented 3 years ago

Hello @serdartaylan. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please fill the Pull Request Template here, provide documentation/test cases if needed and make sure CI passed, we will review it soon. Appreciate it advance and we are looking forward to your contribution!

你好 @serdartaylan, 我们完全同意你的提议/反馈,欢迎直接在此仓库 创建一个 Pull Request 来解决这个问题。请务必填写 Pull Request 内的预设模板,提供改动所需相应的测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献! giphy

tmpi-fr commented 4 months ago

Any update on this ? I would love to have this feature implemented