We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-->
希望表头的icon设置可以动态修改, 我现在的需求是表头有个排序图标, 点击排序图标后可以把图标变为升序或者降序的icon, 目前是不支持动态更新icon的,希望可以出这个功能🙏🏻
直接在现有api设计的基础上新增一个函数, 点击的时候可以获取当前图标的类型, 然后返回一个新的图标展示, 这样每次点击都可以获取上一次的图标来更换下一次要展示的图标
The text was updated successfully, but these errors were encountered:
目前的解决方案是,通过设置多个icon, 然后通过displayConditon控制单个icon显示
Sorry, something went wrong.
是的, 楼上正解, 现有配置可以实现, 配置多个 headerActionIcons, 点击时记录状态, displayConditon 根据状态决定展示哪个 icon
如需支持更方便的动态设置, 欢迎 PR.
lijinke666
No branches or pull requests
🏷 Version
-->
Sheet Type
🖋 Description
希望表头的icon设置可以动态修改, 我现在的需求是表头有个排序图标, 点击排序图标后可以把图标变为升序或者降序的icon, 目前是不支持动态更新icon的,希望可以出这个功能🙏🏻
🧐 Suggest the API
直接在现有api设计的基础上新增一个函数, 点击的时候可以获取当前图标的类型, 然后返回一个新的图标展示, 这样每次点击都可以获取上一次的图标来更换下一次要展示的图标
The text was updated successfully, but these errors were encountered: