Javascript 添加可编辑到引导表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33287284/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Add editable to bootstrap table
提问by yaylitzis
I try to use bootstrap table editable. In my jsp page I have:
我尝试使用可编辑的引导表。在我的jsp页面中,我有:
<div class="row mystyle" >
<div class="col-md-10">
<table id="mytable" class="table table-hover" id="table-pagination"
data-url="data.json"
data-toggle="table"
data-pagination="true"
data-show-pagination-switch="true"
data-sort-order="desc"
data-show-export="true"
data-search="true"
data-show-toggle="true"
data-show-refresh="true"
data-show-columns="true"
data-page-list="[10, 25, 50, 100, ALL]">
<thead>
<tr>
<th data-field="id" data-align="center">id</th>
<th data-field="type" data-align="center">type</th>
<th data-field="quantity" data-align="right" data-sortable="true">cost</th>
</tr>
</thead>
</table>
</div>
and my table is shown great. Now I want to add the editable method. I added the <script src="assets/js/bootstrap-table-editable.js"></script>
and then how ? It isn't clear to me (I am newbie..), how I continue..
我的桌子很好看。现在我想添加可编辑方法。我加了<script src="assets/js/bootstrap-table-editable.js"></script>
然后怎么办?我不清楚(我是新手..),我如何继续..
回答by wenyi
回答by taxicala
回答by barnwaldo
For anyone interested, here is a Reactstrap table with cell-edit capabilities. See https://github.com/msb1/reactstrap-functional-table
对于任何感兴趣的人,这里有一个具有单元格编辑功能的 Reactstrap 表。见https://github.com/msb1/reactstrap-functional-table