Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript datatable记录为空时禁用按钮_Javascript_Angularjs_Datatable - Fatal编程技术网

Javascript datatable记录为空时禁用按钮

Javascript datatable记录为空时禁用按钮,javascript,angularjs,datatable,Javascript,Angularjs,Datatable,我使用的是AngularJSDataTable。如果数据表记录为空,我需要禁用我的审批按钮。 请检查我的密码 <div class="row x-scrollable-table"> <button type="button" ng-disabled="dtColumns" class="btn" ng-click=" Approve()">

我使用的是AngularJSDataTable。如果数据表记录为空,我需要禁用我的审批按钮。 请检查我的密码

      <div class="row x-scrollable-table">
 <button type="button" ng-disabled="dtColumns" class="btn" ng-click=" Approve()">
              Approval
            </button>
                    <div class="col-sm-12">
                        <table width="100%" ng-if="dtColumns" id="customer-table" datatable="" dt-options="dtOptions"
                            dt-columns="dtColumns" class="table table-bordered table-hover">
                        </table>
                    </div>
                </div>

批准
我尝试使用ng disabled属性。但它不起作用。如何识别数据表记录长度和禁用按钮