index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset='utf-8'>
  5. <title>Handsontable - JavaScript data grid editor. Excel-like grid editing with HTML &amp; JavaScript</title>
  6. <!--
  7. Loading Handsontable (full distribution that includes all dependencies apart from jQuery)
  8. -->
  9. <script data-jsfiddle="common" src="dist/handsontable.full.js"></script>
  10. <link data-jsfiddle="common" rel="stylesheet" media="screen" href="dist/handsontable.full.css">
  11. <!--
  12. Loading demo dependencies. They are used here only to enhance the examples on this page
  13. -->
  14. <link data-jsfiddle="common" rel="stylesheet" media="screen" href="demo/css/samples.css">
  15. <script src="demo/js/samples.js"></script>
  16. <script src="demo/js/highlight/highlight.pack.js"></script>
  17. <link rel="stylesheet" media="screen" href="demo/js/highlight/styles/github.css">
  18. <link rel="stylesheet" href="demo/css/font-awesome/css/font-awesome.min.css">
  19. <!--
  20. Facebook open graph. Don't copy this to your project :)
  21. -->
  22. <meta property="og:title" content="Handsontable - JavaScript grid editor">
  23. <meta property="og:description" content="Excel-like data grid with HTML &amp; JavaScript">
  24. <meta property="og:url" content="http://handsontable.com/">
  25. <meta property="og:image" content="http://handsontable.com/demo/image/og-image.png">
  26. <meta property="og:image:type" content="image/png">
  27. <meta property="og:image:width" content="409">
  28. <meta property="og:image:height" content="164">
  29. <link rel="canonical" href="http://handsontable.com/">
  30. <!--
  31. Google Analytics for GitHub Page. Don't copy this to your project :)
  32. -->
  33. <script src="demo/js/ga.js"></script>
  34. <!--
  35. GitHub buttons. Don't copy this to your project :)
  36. -->
  37. <link rel="stylesheet" media="screen" href="demo/github-buttons/github-buttons.css">
  38. <script src="demo/github-buttons/github-buttons.js" async></script>
  39. </head>
  40. <body class="home">
  41. <div class="wrapper">
  42. <div class="wrapper-row">
  43. <div id="global-menu-clone">
  44. <h1><a href="index.html">Handsontable</a> <span class="ver"></span></h1>
  45. <!-- menu start -->
  46. <div id="global-menu">
  47. <ul>
  48. <li>
  49. <h3>Getting Started</h3>
  50. <ul>
  51. <li>
  52. <a href="demo/understanding_reference.html">Understand binding as reference</a>
  53. </li>
  54. <li>
  55. <a href="demo/datasources.html">Array, object, function data source</a>
  56. </li>
  57. <li>
  58. <a href="demo/ajax.html">Load &amp; Save (Ajax)</a>
  59. </li>
  60. </ul>
  61. </li>
  62. <li>
  63. <h3>Appearance</h3>
  64. <ul>
  65. <li>
  66. <a href="demo/renderers.html">Cell renderers</a>
  67. </li>
  68. <li>
  69. <a href="demo/renderers_html.html">Custom HTML</a>
  70. </li>
  71. <li>
  72. <a href="demo/scroll.html">Scroll bars</a>
  73. </li>
  74. <li>
  75. <a href="demo/scroll_window.html"> &#x2514; Scroll bars (window)</a>
  76. </li>
  77. <li>
  78. <a href="demo/stretch.html">Column stretching</a>
  79. </li>
  80. <li>
  81. <a href="demo/stretch_window.html"> &#x2514; Column stretching (window)</a>
  82. </li>
  83. <li>
  84. <a href="demo/conditional.html">Conditional formatting</a>
  85. </li>
  86. <li>
  87. <a href="demo/prepopulate.html">Pre-populate new rows</a>
  88. </li>
  89. <li>
  90. <a href="demo/current.html">Highlight current row/col</a>
  91. </li>
  92. <li>
  93. <a href="demo/sorting.html">Column sorting</a>
  94. </li>
  95. <li>
  96. <a href="demo/column_resize.html">Column &amp; row resize <sup>UPDATED</sup></a>
  97. </li>
  98. <li>
  99. <a href="demo/column_move.html">Column &amp; row move</a>
  100. </li>
  101. <li>
  102. <a href="demo/fixed.html">Fixed rows/columns</a>
  103. </li>
  104. <li>
  105. <a href="demo/column_freeze.html">Column freeze <sup>NEW</sup></a>
  106. </li>
  107. <li>
  108. <a href="demo/pagination.html">Pagination</a>
  109. </li>
  110. <li>
  111. <a href="demo/merge_cells.html">Merge cells</a>
  112. </li>
  113. <li>
  114. <a href="demo/align_cell.html">Horizontal &amp; vertical align</a>
  115. </li>
  116. <li>
  117. <a href="demo/custom_borders.html">Custom borders</a>
  118. </li>
  119. </ul>
  120. </li>
  121. <li>
  122. <h3>Cell types</h3>
  123. <ul>
  124. <li>
  125. <a href="demo/numeric.html">Numeric</a>
  126. </li>
  127. <li>
  128. <a href="demo/date.html">Date <sup>UPDATED</sup></a>
  129. </li>
  130. <li>
  131. <a href="demo/time.html">Time <sup>NEW</sup></a>
  132. </li>
  133. <li>
  134. <a href="demo/checkbox.html">Checkbox</a>
  135. </li>
  136. <li>
  137. <a href="demo/selectEditor.html">Select</a>
  138. </li>
  139. <li>
  140. <a href="demo/dropdown.html">Dropdown</a>
  141. </li>
  142. <li>
  143. <a href="demo/autocomplete.html">Autocomplete</a>
  144. </li>
  145. <li>
  146. <a href="demo/password.html">Password</a>
  147. </li>
  148. <li>
  149. <a href="demo/handsontable.html">Handsontable</a>
  150. </li>
  151. </ul>
  152. </li>
  153. <li>
  154. <h3>Editing</h3>
  155. <ul>
  156. <li>
  157. <a href="demo/validation.html">Validation</a>
  158. </li>
  159. <li>
  160. <a href="demo/dragdown.html">Drag-down</a>
  161. </li>
  162. <li>
  163. <a href="demo/buttons.html">Custom buttons</a>
  164. </li>
  165. <li>
  166. <a href="demo/contextmenu.html">Context menu</a>
  167. </li>
  168. <li>
  169. <a href="demo/contextmenucopypaste.html"> &#x2514; Copy/Paste in Context menu</a>
  170. </li>
  171. <li>
  172. <a href="demo/dropdownmenu.html">Dropdown menu <sup>NEW (PRO)</sup></a>
  173. </li>
  174. <li>
  175. <a href="demo/comments.html">Comments <sup>BETA</sup></a>
  176. </li>
  177. <li>
  178. <a href="demo/readonly.html">Read-only cells</a>
  179. </li>
  180. <li>
  181. <a href="demo/search.html">Search of values</a>
  182. </li>
  183. </ul>
  184. </li>
  185. <li>
  186. <h3>Integration</h3>
  187. <ul>
  188. <li>
  189. <a href="demo/options.html">Options</a>
  190. </li>
  191. <li>
  192. <a href="demo/callbacks.html">Callbacks</a>
  193. </li>
  194. <li>
  195. <a href="demo/beforeKeyDown.html"> &#x2514; beforeKeyDown</a>
  196. </li>
  197. <li>
  198. <a href="demo/backbone.html">Backbone.js</a>
  199. </li>
  200. <li>
  201. <a href="demo/jquery.html">jQuery</a>
  202. </li>
  203. <li>
  204. <a href="demo/bootstrap.html">Twitter Bootstrap</a>
  205. </li>
  206. <li>
  207. <a href="demo/graphael.html">gRaphaël charts</a>
  208. </li>
  209. <li>
  210. <a href="demo/heatmaps.html">Chroma.js (Heatmaps)</a>
  211. </li>
  212. <li>
  213. <a href="https://github.com/handsontable/hot-table">hot-table (Polymer) <sup><i
  214. class="icon-external-link"></i></sup></a>
  215. </li>
  216. <li>
  217. <a href="https://github.com/handsontable/ngHandsontable">ngHandsontable (AngularJS) <sup><i
  218. class="icon-external-link"></i></sup></a>
  219. </li>
  220. </ul>
  221. </li>
  222. </ul>
  223. <ul>
  224. <li><a href="https://twitter.com/handsontable"><i class="icon-twitter"></i> Follow
  225. @handsontable</a></li>
  226. <li><a href="https://groups.google.com/forum/?fromgroups=#!forum/handsontable"><i
  227. class="icon-comment"></i> Discuss on Google Groups</a></li>
  228. </ul>
  229. </div>
  230. <!-- menu end -->
  231. </div>
  232. <div id="github-buttons">
  233. <span class="github-btn" id="githubWatch">
  234. <a class="gh-btn github-watchers" href="https://github.com/handsontable/handsontable">
  235. <span class="gh-ico"></span>
  236. <span class="gh-text">Star</span>
  237. </a>
  238. <a class="gh-count" href="https://github.com/handsontable/handsontable/stargazers"></a>
  239. </span>
  240. <span class="github-btn" id="githubFork">
  241. <a class="gh-btn github-forks" href="https://github.com/handsontable/handsontable">
  242. <span class="gh-ico"></span>
  243. <span class="gh-text">Fork</span>
  244. </a>
  245. <a class="gh-count" href="https://github.com/handsontable/handsontable/network"></a>
  246. </span>
  247. </div>
  248. <div id="container">
  249. <div class="columnLayout">
  250. <div class="rowLayout">
  251. <div class="descLayout">
  252. <div class="pad">
  253. <div class="warning" id="domainNotice">
  254. This page has been moved to
  255. <a href="http://handsontable.com/">http://handsontable.com/</a>. Please update your bookmarks.
  256. </div>
  257. </div>
  258. <div class="pad" data-jsfiddle="example">
  259. <p style="font-size: 20px"><strong>Handsontable</strong> is a minimalist Excel-like <span class="nobreak">data grid</span>
  260. editor
  261. for HTML &amp; JavaScript</p>
  262. <div class="warning">
  263. This is Handsontable <a href="https://github.com/handsontable/handsontable/releases" class="ver"></a>, a
  264. release published on May 21st, 2015.
  265. <p>The most prominent changes are:</p>
  266. <ul>
  267. <li>modified fixed header/overlay structure - each overlay has its own hidden scrollbar - change was made to reduce the laggy overlay effect for IE and Safari,<br><br>
  268. <strong>Please note:</strong> In order to maintain the pre-0.14.0 scrollbar functionality, change the CSS <code>overflow</code> property of your Handsontable container from <code>scroll</code>
  269. or <code>auto</code> to <code>hidden</code>. Without performing this change, you might encounter problems with doubling scrollbars.</li><br>
  270. <li>Adding JSDoc to the project,</li>
  271. <li>Removal of jQuery UI datepicker - we switched to Pikaday + Moment.js, that makes us jQuery-free</li>
  272. </ul>
  273. Check out the <a href="https://github.com/handsontable/handsontable/releases/latest/">full release
  274. notes</a>. If you experience some rough edges, please report an
  275. <a href="https://github.com/handsontable/handsontable/issues">issue</a> or temporarily stick to
  276. version <a href="http://old.handsontable.com">0.10.5 <sup><i
  277. class="icon-external-link"></i></sup></a>.
  278. </div>
  279. <div id="example"></div>
  280. </div>
  281. </div>
  282. <div class="codeLayout">
  283. <div class="jsFiddle inline-buttons">
  284. <button class="show-source"></button>
  285. <button class="jsFiddleLink" data-runfiddle="example">Edit in jsFiddle</button>
  286. <button name="dump" data-dump="#example" data-instance="hot" title="Prints current data source to Firebug/Chrome Dev Tools">
  287. Dump data to console
  288. </button>
  289. </div>
  290. <script data-jsfiddle="example">
  291. var
  292. data = [
  293. ['', 'Maserati', 'Mazda', 'Mercedes', 'Mini', 'Mitsubishi'],
  294. ['2009', 0, 2941, 4303, 354, 5814],
  295. ['2010', 3, 2905, 2867, 412, 5284],
  296. ['2011', 4, 2517, 4822, 552, 6127],
  297. ['2012', 2, 2422, 5399, 776, 4151]
  298. ],
  299. container = document.getElementById('example'),
  300. hot;
  301. hot = new Handsontable(container, {
  302. data: data,
  303. minSpareRows: 1,
  304. colHeaders: true,
  305. contextMenu: true
  306. });
  307. </script>
  308. </div>
  309. </div>
  310. <script type="text/javascript">
  311. var showSourceElements = document.querySelectorAll('.show-source');
  312. for(var i = 0; i < showSourceElements.length ; i++) {
  313. var showElem = showSourceElements[i];
  314. showElem.addEventListener('mousedown', function (event) {
  315. event.preventDefault();
  316. if(showElem.className.indexOf('shown') > -1) {
  317. showElem.className = showElem.className.replace('shown', '');
  318. } else {
  319. showElem.className += ' shown';
  320. }
  321. var preJS = document.querySelectorAll('pre.javascript');
  322. for(var j = 0; j < preJS.length; j++) {
  323. if(preJS[j].style.display == '') {
  324. preJS[j].style.display = 'block';
  325. } else {
  326. preJS[j].style.display = '';
  327. }
  328. }
  329. var codeLay = document.querySelectorAll('.codeLayout');
  330. for(var j = 0; j < codeLay.length; j++) {
  331. if(codeLay[j].className.indexOf('codeLayoutExpanded') > -1) {
  332. codeLay[j].className = codeLay[j].className.replace('codeLayoutExpanded', '');
  333. } else {
  334. codeLay[j].className += ' codeLayoutExpanded';
  335. }
  336. }
  337. });
  338. }
  339. var verHolders = document.querySelectorAll('.ver');
  340. for(var i = 0; i < verHolders.length; i++) {
  341. var verText = document.createTextNode(hot.version);
  342. verHolders[i].appendChild(verText);
  343. }
  344. </script>
  345. <div class="footer-text">.
  346. </div>
  347. </div>
  348. </div>
  349. </div>
  350. </div>
  351. <div id="outside-links-wrapper">
  352. <!-- outside-links start -->
  353. <div id="outside-links">
  354. <div class="inline-buttons">
  355. <a class="button"
  356. href="https://github.com/handsontable/handsontable/releases">Releases</a>
  357. <a class="button button-light" href="https://github.com/handsontable/handsontable/wiki"><i
  358. class="icon-book"></i> Wiki</a>
  359. <a class="button button-secondary button-light"
  360. href="https://github.com/handsontable/handsontable/wiki/Options">Options</a>
  361. <a class="button button-secondary button-light"
  362. href="https://github.com/handsontable/handsontable/wiki/Methods">Methods</a>
  363. <a class="button button-secondary" href="https://github.com/handsontable/handsontable/wiki/Events">Events</a>
  364. <a class="button" href="https://github.com/handsontable/handsontable/wiki/FAQ">F.A.Q.</a>
  365. <a class="button button-github" href="https://github.com/handsontable/handsontable"><i
  366. class="icon-github"></i> Source</a>
  367. <a class="button button-github" href="https://github.com/handsontable/handsontable/issues"><i
  368. class="icon-bug"></i> Issues</a>
  369. </div>
  370. <div class="clear"></div>
  371. </div>
  372. <!-- outside-links end -->
  373. </div>
  374. </body>
  375. </html>