我正在使用主要反应数据表显示数据表,当鼠标悬停在单元格上时,我想显示工具提示或标题,如下图所示。
我浏览了 Column 组件,但没有找到任何相关的关键字来在单元格上显示工具提示或标题,该单元格用于显示数据表中的列。
代码:
<DataTable
value={this.state.products3}
editMode="row"
dataKey="id"
onRowEditInit={this.onRowEditInit}
onRowEditCancel={this.onRowEditCancel}
>
<Column field="code" header="Code" editor={(props) => this.codeEditor('products3', props)}></Column>
<Column rowEditor headerStyle={{ width: '7rem' }} bodyStyle={{ textAlign: 'center' }} title='Edit'></Column>
</DataTable>
来源:https ://primefaces.org/primereact/showcase/#/datatable/edit
您的回答将不胜感激!