选择行materialuidatatable R中的值

2024-10-03 13:28:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要从选定行的单元格中获取值

这是我的桌子

  <DataTables
                   height={'auto'}
                   selectable={true}
                   showRowHover={true}
                   filterHintText ={this.props.filtro}
                   title = {this.props.titulo}
                   showHeaderToolbar={true}
                   columns={TABLE_COLUMNS}
                   data={this.state.data}
                   showCheckboxes={true}
                   onRowSelection={this.handleRowSelection}
                   onFilterValueChange={this.handleFilterValueChange}
                   onSortOrderChange={this.handleSortOrderChange}
                   enableSelectAll={true}
                   page={1}
                   count={100}
               />);

这是我的方法

^{pr2}$

只是得到一个行id,我不知道如何从选中的行获取单元格数据我尝试了这个表单,但结果没有找到

在控制台.log('Valor:'+selectedRows[1])


Tags: trueautodatatitlepropsthisselectabledatatables