【问题标题】:What does the property ColSpan in the Material UI TablePagination mean?Material UI TablePagination 中的 ColSpan 属性是什么意思?
【发布时间】:2021-06-17 00:56:17
【问题描述】:

这里的 ColSpan 是干什么用的?

示例来自:https://material-ui.com/components/tables/#table

寻找箭头

        <TableFooter>
          <TableRow>
            <TablePagination
              rowsPerPageOptions={[5, 10, 25, { label: 'All', value: -1 }]}
------------> colSpan={3}
              count={rows.length}
              rowsPerPage={rowsPerPage}
              page={page}
              SelectProps={{
                inputProps: { 'aria-label': 'rows per page' },
                native: true,
              }}
              onChangePage={handleChangePage}
              onChangeRowsPerPage={handleChangeRowsPerPage}
              ActionsComponent={TablePaginationActions}
            />
          </TableRow>
        </TableFooter>

【问题讨论】:

    标签: javascript reactjs html-table material-ui


    【解决方案1】:

    组件&lt;TablePagination&gt; 提供了未列出到&lt;TableCell&gt; 的道具,它提供了未列出到本机元素的道具。我假设那是&lt;td&gt;

    属性colSpan 确定一个单元格跨越多少列。

    【讨论】:

      猜你喜欢
      • 2019-06-23
      • 2019-09-13
      • 1970-01-01
      • 1970-01-01
      • 2019-06-12
      • 2011-05-16
      • 2013-06-13
      • 2016-01-13
      • 1970-01-01
      相关资源
      最近更新 更多