加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

twitter-bootstrap – 如何在bootstrap-table中添加bootstrap按

发布时间:2020-12-18 00:23:25 所属栏目:安全 来源:网络整理
导读:如何在 bootstrap-table中添加引导按钮 请任何人帮忙 解决方法 我已经想出了解决方案ID喜欢分享它. 这是我的桌子 table id="table" data-toggle="table" data-pagination="true" data-url="data/RegisteredVisitors.json" data-show-refresh="true" data-sho
如何在 bootstrap-table中添加引导按钮

请任何人帮忙

解决方法

我已经想出了解决方案ID喜欢分享它.
这是我的桌子
<table
    id="table"
    data-toggle="table"
    data-pagination="true"
    data-url="data/RegisteredVisitors.json"
    data-show-refresh="true"
    data-show-toggle="true"
    data-show-columns="true"
    data-search="true"                          
    data-show-pagination-switch="true"
    data-id-field="visitor_id"
    data-page-list="[10,25,50,100,ALL]"
    data-show-footer="false">    
<thead>
<tr>    
    <th data-field="visitor_id" data-checkbox="false" >#</th>
    <th data-field="visitor_number" data-formatter="VisitorDetails">Visitor #</th>
    <th data-field="visitor_names" data-formatter="VisitorDetails" data-sortable="true">Visitor Names</th>
    <th data-field="phone_number"  data-sortable="true">Phone Number</th>
    <th data-field="matter_type"  data-sortable="true">Matter Type</th>
    <th data-field="office_name"  data-sortable="true">Office Attending</th>
    <th data-field="time_in"  data-sortable="true">Time In</th>
    <th data-field="time_out" data-sortable="true">Time Out</th>
    <th data-field="last_visit"  data-sortable="true">Last Visit</th>
    <th data-formatter="TableActions">Action</th>
</tr>
</thead>
</table>

这是我的Jquery函数

function TableActions (value,row,index) {
            return [
                '<a class="like" href="javascript:void(0)" title="Edit">','<i class="glyphicon glyphicon-pencil"></i>','</a> ','<a class="danger remove" href="javascript:void(0)" data-visitorserial="'+row.visitor_id+'" data-visitornames="'+row.visitor_names+'" data-visitorid="'+row.visitor_number+'" data-toggle="modal" data-target="#VisitorDelete" title="Remove">','<i class="glyphicon glyphicon-trash"></i>','</a>'
            ].join('');
        }

终于搞定了

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读