withFixedColumns (Angular JS)

withFixedColumns (Angular JS)

MaiMai Posts: 1Questions: 1Answers: 0

I am using directive to assign options to table all opetions working fine till withFixedColumns not working at all
please help

(function (angular, $) {
'use strict';
angular.module('kn.grid').directive('onLastRepeat', ['$timeout','DTOptionsBuilder',function (timeout,DTOptionsBuilder) {
return function (scope, element, attrs) {
var options = {};

        options = DTOptionsBuilder.newOptions()

            .withOption('sort', false)
            .withOption('filter', false)
            .withOption('info', false)
            .withOption('language', {
                'zeroRecords': "",
                'emptyTable': ""
            })
            .withOption('paging', false)
            .withOption('scrollY', '300px')
            .withOption('scrollX', '100%')
            .withOption('scrollCollapse', true)
            .withFixedColumns({
                leftColumns: 1,
                rightColumns: 0
            });
        timeout(function(){
            element.dataTable(options);
       },0);



    };
}]);

}(window.angular, window.$))

This discussion has been closed.