ios - How do I detect a row I have tapped that was inserted via a MultivaluedSection in Eureka form builder?
问题描述
I can successfully insert TextAreaRow(s) in the MultivaluedSection and each is given a unique name using a string plus the index. I would like to be able to intercept when someone taps on one of these newly inserted rows as I would like to perform some additional actions.
Any help would be greatly appreciated!
Mark
解决方案
当有人点击这些新插入的行之一时,我希望能够拦截,因为我想执行一些额外的操作。
根据文档,尤里卡有回调onCellSelection()
:
每次用户点击该行并被选中时调用。
基本上,您需要在此回调中描述您的更改:
AnyRowYouWant { row in
// init the row
}.onCellSelection { cell, row in
// handle tap right here
}
推荐阅读
- javascript - 时间服务器连接计算
- entity-framework-core - EF Core 只读属性和参数化构造函数不起作用
- javascript - 每个表格的 HTML 打印页面
- google-chrome - Chrome 扩展 chrome.proxy.settings.set 显然不起作用
- python - 如何在pytorch中为Fashion_MNIST使用MSELoss函数?
- angular - 预期错误无法使用 Angular 12
- python - 返回 map() 对象作为一个漂亮的汤可迭代
- javascript - 在地图中使用地图有条件地渲染数据
- visual-studio - 有没有办法在 VS 或 Rider 中搜索递归代码
- python - 传递要在 tkinter 选项卡中绘制的图形