Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="AbnTest">
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script>
<!--/-->
<!-- Bootstrap 2 or Bootstrap 3 ?-->
<!---->
<link rel = "stylesheet" href = "//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
<!---->
<!-- Angular 1.1.5 or 1.2.12 ?-->
<!---->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ng-grid/2.0.11/ng-grid.debug.js"></script>
<link rel="stylesheet" href="../dist/abn_tree.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/ng-grid/2.0.11/ng-grid.css" />
<script src="http://nickperkinslondon.github.io/angular-bootstrap-nav-tree/dist/abn_tree_directive.js"></script> 
<!-- js for this test page:-->
<script src="test_page.js"></script>
</head>
<body ng-controller="AbnTestController" style="margin:20px">
  <button ng-click="try_changing_the_tree_data()" class="btn btn-default btn-sm">Submit File</button>
  <p>
    <table width="100%" style="height: 100%;" cellpadding="10" cellspacing="0" border="0">
      <tr>
        <!-- ============ LEFT COLUMN (MENU) ============== -->
        <td width="250px" style="vertical-align:top" bgcolor="whitesmoke">
          <div style="width:250px;background:whitesmoke;border:1px solid lightgray;border-radius:5px;">
            <abn-tree ng-click="visible.grid = true" tree-data="my_data" tree-control="my_tree" on-select="my_tree_handler(branch)" expand-level="2"></abn-tree>
          </div>
        </td>
        <!-- ============ RIGHT COLUMN (CONTENT) ============== -->
        <td width="80%" valign="top" bgcolor="#d2d8c7">
          <div style="vertical-align:top;">
            <div ng-repeat="rule in rules">
              <div ng-show="rulesMap[rule.uid] == 'isVisible'" class="gridStyle" ng-grid="rule.grid"></div>
            </div>
            <div id="results"></div>
          </div>
        </td>
      </tr>
    </table>
  </p>
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
o4ohelpro
0viewers