Angular DataTable DTColumnBuilder的默认值为null

时间:2016-11-22 15:43:28

标签: javascript angularjs datatables

如何在出现null时设置默认值

 $scope.dtOptions = DTOptionsBuilder
                    .fromSource('api/Restt/List');
                $scope.dtColumns = [
                    DTColumnBuilder.newColumn('modifT').withTitle('Date & Time')

1 个答案:

答案 0 :(得分:3)

 $scope.dtOptions = DTOptionsBuilder
                .fromSource('api/Restt/List');
            $scope.dtColumns = [
                DTColumnBuilder.newColumn('modifT').withTitle('Date & Time').withOption('defaultContent', '-default value-')