【问题标题】:How to get rid of "Sort" & "Delete" columns in MDBootstrap React MDBTableEditable component?如何摆脱 MDBootstrap React MDBTableEditable 组件中的“排序”和“删除”列?
【发布时间】:2020-05-04 22:34:59
【问题描述】:

their demo code 中,他们列出了以下列:

const columns = ["Person Name", "Age", "Company Name", "Country", "City"];

然而,“排序”和“删除”列会附加到右侧。如何摆脱这些列?

【问题讨论】:

  • 你有任何沙箱示例吗?

标签: reactjs mdbootstrap


【解决方案1】:

我可以访问他们的源代码。他们有列HARD CODED

<tr>
    {columns && columns.map((th, i) => {
        return <th key={i}>{th}</th>; })}
    <th>Sort </th>
    <th>Delete </th>
</tr>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-11-23
    • 1970-01-01
    • 2021-05-25
    • 2014-02-08
    • 2021-08-10
    • 2020-10-29
    • 2023-04-03
    • 2020-07-04
    相关资源
    最近更新 更多