私のアプリケーションではag-gridを使用しています。私は同じページ上の2つのグリッドでグリッドオプションの同じインスタンスを使用したいと思います。 ag-gridはグリッドの1つのみをレンダリングし、もう一方のグリッドは空にします。単一のgridOptionsを使用して同じページ内に複数のインスタンスをグリッドに表示
このplnkrは、私はAG-グリッドがこれをサポートしているかわからない問題
http://plnkr.co/edit/4rRNRGbUoy8QhAhGadpQ?p=preview
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.min.js"></script>
<script src="https://www.ag-grid.com/dist/ag-grid.js?ignore=notused24"></script>
<script src="script.js"></script>
</head>
<body ng-app="example" ng-controller="exampleCtrl">
<button ng-click="loadData()">Load Data</button>
<button ng-click="showPopup()">Toggle Docked</button>
<div ng-show="docked">
<h2>Docked</h2>
<div ag-grid="gridOptions" class="ag-fresh" style="height: 100%;"></div>
</div>
<div ng-show="docked">
<h2>UnDocked</h2>
<div ag-grid="gridOptions" class="ag-fresh" style="height:100%;"></div>
</div>
</body>
</html>