zoukankan      html  css  js  c++  java
  • bootstrap-table接合abp

    将ui-grid 换成了bootstrap-table,

    在abp中如此结合

     1 function ajaxRequest(params) {
     2     console.log(params.data);
     3     roleService.getRoles({}).success(function (result) {
     4 
     5     params.success({
     6         total: result.totalCount,
     7         rows: result.items
     8         });
     9     });
    10 }    
    1 vm.bsTableControl = {
    2                 options: {
    3                     data: vm.roles,
    4                     //rowStyle: function (row, index) {
    5                     //    return { classes: 'none' };
    6                     //},
    7                     ajax: ajaxRequest
    8 .....其它参数略
    9 };

    在app.js中

    var app = angular.module('app', ['bsTable']....

    以上代码在role下面的index.js中修改.

    html代码

    <table bs-table-control="vm.bsTableControl"></table>
  • 相关阅读:
    第7章例7-12
    第7章例7-11
    第7章例7-9
    第7章例7-8
    第7章例7-7
    第7章例7-6
    第7章例7-5
    第7章例7-4
    第7章例7-3
    第7章例7-2
  • 原文地址:https://www.cnblogs.com/forhell/p/6856607.html
Copyright © 2011-2022 走看看