angularjs - withFixedColumns property dont work for me using angular datatable -


i using angulardatable. need create table , fixed first column. datatable work fine, when add withfixedcolumns table dissapear. have included libraries.

this part of code

var app = angular.module('dataview', ['datatables', 'datatables.fixedcolumns'])    app.controller('dataviewctrl', function($scope, dtoptionsbuilder,){        $scope.dtoptions = dtoptionsbuilder.newoptions()      .withoption('scrolly', '500px')      .withoption('scrollx', '100%')      .withoption('paging', false)      .withoption('scrollcollapse', true)  })
<script src="/assets/vendor/jquery/dist/jquery.min.js"></script>  <script src="/assets/vendor/bootstrap/dist/js/bootstrap.min.js"></script>  <script src="/assets/vendor/angular/angular.min.js"></script>  <script src="/assets/vendor/datatables/media/js/jquery.datatables.min.js"></script>  <script src="/assets/js/plugins/datatables/datatables.bootstrap.js"></script>  <script src="/assets/vendor/angular-datatables/dist/angular-datatables.min.js"></script>  <script src="/assets/js/plugins/datatables/fixedcolumns-master/js/datatables.fixedcolumns.js"></script>  <script src="/assets/vendor/angular-datatables/dist/plugins/fixedcolumns/angular-datatables.fixedcolumns.min.js"></script>    <body ng-app="dataview" ng-controller="dataviewctrl dvc">    <table class="table table-striped table-hover" datatable="ng" dt-options="dtoptions">      <thead>        <th>date</th>        <th ng-repeat='tag_name in tag_names'>{{tag_name}}</th>      <thead>        <tbody>        <tr ng-repeat='tr in graph_data'>          <td ng-repeat='td in null2text(tr) track $index'>{{td}}</td>        </tr>        </tbody>      <table>    </body>  

so far works correctly, when enclose withfixedcolumns. table disappears

this code error:

 $scope.dtoptions = dtoptionsbuilder.newoptions()      .withoption('scrolly', '500px')      .withoption('scrollx', '100%')      .withoption('paging', false)      .withoption('scrollcollapse', true)      .withfixedcolumns({              leftcolumns: 1          });


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -