Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
500 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. Ext.onReady(function(){
  8. var btn = Ext.get("create-grid");
  9. btn.on("click", function(){
  10. btn.dom.disabled = true;
  11. // create the grid
  12. var grid = new Ext.ux.grid.TableGrid("the-table", {
  13. stripeRows: true // stripe alternate rows
  14. });
  15. grid.render();
  16. }, false, {
  17. single: true
  18. }); // run once
  19. });