【问题标题】:How to integrate bootstrap table into Angular 2?如何将引导表集成到 Angular 2 中?
【发布时间】:2017-01-15 09:58:48
【问题描述】:

我想整合这个 bootstrap table example 到一个组件中。即使我将源文件附加到 index.html,它也不起作用,如果它插入到 index.html 的根组件下方,它就可以工作。我找到了类似的question,但没有解决,对话以某种方式结束于这个问题?非常感谢您的回答,我使用此表代码进行集成,mytable

<table data-toggle="table"
       data-url="/gh/get/response.json/wenzhixin/bootstrap-table/tree/master/docs/data/data1/"
       data-click-to-select="true">
    <thead>
    <tr>
        <th data-field="state" data-checkbox="true"></th>
        <th data-field="name">Name</th>
        <th data-field="stargazers_count">Stars</th>
        <th data-field="forks_count">Forks</th>
        <th data-field="description">Description</th>
    </tr>
    </thead>
</table>

【问题讨论】:

  • cmon,谁能帮帮我?

标签: angular bootstrap-table


【解决方案1】:

<table data-toggle="table"
       data-url="/gh/get/response.json/wenzhixin/bootstrap-table/tree/master/docs/data/data1/"
       data-click-to-select="true">
    <thead>
    <tr>
        <th data-field="state" data-checkbox="true"></th>
        <th data-field="name">Name</th>
        <th data-field="stargazers_count">Stars</th>
        <th data-field="forks_count">Forks</th>
        <th data-field="description">Description</th>
    </tr>
    </thead>
</table>

【讨论】:

    猜你喜欢
    • 2017-12-23
    • 1970-01-01
    • 2021-12-14
    • 1970-01-01
    • 2017-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-25
    相关资源
    最近更新 更多