- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我只想获取第一列的数据,或者我知道索引该列,AgGrid Angular2。
我在用
cellClicked
html
(cellClicked)="onCellClicked(event)"
组件.ts
onCellClicked(event) {
console.log('(event', event);
}
问题是我可以在所有行中“点击”...但我只想点击第一列或使用 if() 知道 indexCell,如果它是 cell == 0 ...
最佳答案
onCellClicked(event){
if (event.column.getColId() === 'your first column id') {
// do your stuff here
}
}
关于angular - onCellClicked 只有第一个 Cell AgGrid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50490171/
我只想获取第一列的数据,或者我知道索引该列,AgGrid Angular2。 我在用 cellClicked html (cellClicked)="onCellClicked(event)" 组件.
我只想获取第一列的数据,或者我知道索引该列,AgGrid Angular2。 我在用 cellClicked html (cellClicked)="onCellClicked(event)" 组件.
我正在尝试在 Material UI 表上实现一个简单的 onCellClick 监听器。 在它的早期版本中,表范围onCellClick中的函数用于给出单击时的行号和列号,如图here 当前此功能放
目前,我正在使用带有 React Hook 的功能性 React 组件 useState和一个 AgGridReact组件。 我正在显示一个 AgGridReact并放一个 onCellClicked
我正在使用添加到 DBGrid - OnCellClick 事件中的以下代码 procedure TForm2.DBGrid1CellClick(Column: TColumn); begin if
事件形式 1: procedure TForm1.Panel1DblClick(Sender: TObject); begin TForm2.Create(Self).ShowModal; end
我是一名优秀的程序员,十分优秀!