-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
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
需要提供筛选api #591
Comments
|
|
多谢回复
|
perhaps i am misunderstanding this a bit. can you give an example of what youd want for this api, or perhaps some other product which has this so i can refer to it. |
设计一个针对列过滤表格的API。 作用:针对表格某一列中数据筛选,最后显示符合预期的结果。大概思路是 隐藏不符合规则的行。 filterSheetForColumn(sheetId,column,(cellData)=>{}) 参数说明 使用:过滤出第一列和第二列中单元格值为 '123' 的数据。 或者更简单的直接提供一个隐藏某些行的API。 English translation Function: Filter the data in a column of the table, and finally display the expected result. The idea is to hide rows that do not conform to the rule. filterSheetForColumn(sheetId,column,(cellData)=>{}) Parameter description Use: Filter out data with cell value '123' in the first and second columns. Or, more simply, simply provide an API that hides certain lines. |
thanks for the detailed reply, so this boils down to an api for hiding rows programmatically. something like |
im a bit confused, can we close this too or is this 2 separate issues mixed into 1 |
我感觉是两个问题 I think it's two problems One problem is the desire to add an API Another problem is that the table does not refresh after modifying some config of the table using the updateSheet method, so you need to manually call forceUpdate to refresh it It's a coincidence that I found these two problems while implementing the table filtering feature |
我看到了你对另一个问题的回复,非常感谢,你的效率非常高 I saw your reply on the other question, thank you very much, you are very efficient |
understood. if there is some other option in the config for which you need an api we can plan it out like the one for hiding rows/cols so that the sheet gets refreshed as well. |
1.表格自带的筛选工具UI太丑了,需要自己实现筛选功能。但是没有提供外部调用的筛选API。
2.即使使用applyOp(ops)方法 也无法隐藏对应的行。通过鼠标右键隐藏行时明明也是这个ops,却无法直接调用applyOp,无法理解。
例如:
ops = [{
"op":"add",
"value":{
rowhidden:{1:0},
}
path:["config"],
id:1
}]
3.文档中op的描述太少了,无法让开发人员根据op自己实现对表格的操作,起码把表格自带操作的op都描述出来。
The text was updated successfully, but these errors were encountered: