Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html data-ng-app="app.dataset.default">
<head>
  <link rel="stylesheet" href="http://handsontable.github.io/ngHandsontable/bower_components/handsontable/dist/handsontable.full.css">
  <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.5/angular.js"></script>
  <script src="http://handsontable.github.io/ngHandsontable/bower_components/handsontable/dist/handsontable.full.js"></script>
  <script src="http://handsontable.github.io/ngHandsontable/dist/ngHandsontable.js"></script>
  <!-- demo helpers -->
  <meta charset="utf-8">
</head>
<body data-ng-controller="MainCtrl as ctrl">
  filter:<input type="text" ng-model="ctrl.filter" />{{ctrl.filter}}
  
  <hot-table col-headers="true" datarows="ctrl.items.data">
    <hot-column ng-repeat="column in ctrl.items.columns" data="{{column.data}}" title="column.title" read-only="column.readOnly"></hot-column>
  </hot-table>
</body>
</html>
 
angular.module('app.dataset.default', ['ngHandsontable'])
    .controller('MainCtrl', ['$scope', function ($scope) {
  var MainCtrl = this;
  MainCtrl.filter = null;
  MainCtrl.items = {
    columns: [{ 
      data: 'value', title: 'Value', readOnly: true
    },
    {
      data: 'id', title: 'ID', readOnly: false
    }],
    data: [{
      value: 'Bob',
      id: '13'
    },
    {
      value: 'John',
      id: '1'
    },
    {
      value: 'Wesley',
      id: '12'
    }]
  };
}]);
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers