简体   繁体   English

如何在 Tabulator 表格的特定行中选择特定单元格

[英]How do I select a specific cell in a specific row in a Tabulator table

I want to be able to programmatically select or grab a specific cell in a specific row - for example to get the 7th column of the row with data.id = 1:我希望能够以编程方式选择或抓取特定行中的特定单元格 - 例如获取 data.id = 1 的行的第 7 列:

tableObject.selectRow(1).getCell(6) 

I've been playing for ages with this and I can't get it to work.我已经用这个玩了很长时间了,但我无法让它工作。 Help please.请帮助。

经过多次摆弄,我找到了解决方案:

tableObject.getRowFromPosition(0).getCell('fieldname')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何自动滚动到特定的表格行? - How do I auto-scroll to a specific table row? 如果有 null 值或特定值,如何隐藏表格行 - How do I hide a table row if there is a null value or a specific value 在JavaScript中选择特定的表格单元格 - Select specific table cell in JavaScript 如何清空 Tabulator 表以供重复使用? - How do I empty a Tabulator table for reuse? 单击同一行中另一个单元格中的图像后,如何替换特定单元格上的单词? - How do I replace a word on a specific cell upon clicking on an image in another cell that is on the same row? 我需要仅使用 javascript 更新 html 表中的特定单元格,我如何定位此单元格? - I need to update a specific cell in an html table using only javascript, how do i target this cell? 选择表格单元格并通过弹出窗口更新该特定单元格 - Select table cell and update that specific cell by popup jQuery:如何将表格属性动态添加到一行中的特定单元格? - jQuery: How can I dynamically add a table attribute to a specific cell in a row? 我如何 select 来自特定列、特定表的所有内容,然后将它们推送到数组中? - How do I select everything from a specific column, from a specific table, and then push them into an array? 如何单击行表并提醒特定单元格值 - How to click row table and alert specific cell value
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM