Skip to content

Commit 8ecd3b0

Browse files
committed
update readme for new examples page and update autocomplete editor
1 parent 8dbd4d4 commit 8ecd3b0

File tree

2 files changed

+11
-56
lines changed

2 files changed

+11
-56
lines changed

README.md

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
## This is the 6pac slickgrid repo
1+
## This is the 6pac SlickGrid repo
22

3-
I am maintaining this branch as a separate 'alternative master'. Check [my wiki](https://github.com/6pac/SlickGrid/wiki) for details.
3+
This is the acknowledged most active non-customised fork of SlickGrid.
44

5-
Once we take on SlickGrid we all add [my patch for my specific app requirement]. This 'application noise' makes it much harder to share updates to SlickGrid with other users, who may want some of the changes, but find others irrelevant.
5+
This repo is deliberately **non-customised**. I have *only* kept jQuery up to date, made bug fixes where necessary and added small features carefully considered to enhance the overall usefulness of the grid.
66

7-
This repo is deliberately **non-customised**. We have *only* kept jQuery up to date, made bug fixes where necessary and added small features carefully considered to enhance the overall usefulness of the grid.
8-
Example pages showcase any new features.
7+
Check out the [Example Pages](https://github.com/6pac/SlickGrid/wiki/Examples) for examples demonstrating new features and use cases, such as dynamic grid creation and editors with third party controls.
98

10-
The following, in short, are the changes made since forking from the main MLeibman branch, a significant number in response to issues or pull requests.
9+
Also check out my [wiki](https://github.com/6pac/SlickGrid/wiki).
10+
11+
The following are the changes made since forking from the main MLeibman branch, a significant number in response to issues or pull requests.
1112

1213
**Maintenance:**
1314

@@ -44,31 +45,4 @@ The following, in short, are the changes made since forking from the main MLeibm
4445
* Add example of dynamic tab and grid creation for basic grid
4546
* Add example of dynamic tab and grid creation for grid with all the features of example-4-model
4647

47-
# Original mleibman README follows:
48-
49-
50-
51-
52-
53-
Find documentation and examples in [the wiki](https://github.com/mleibman/SlickGrid/wiki).
54-
55-
# Welcome to SlickGrid
56-
57-
## SlickGrid is an advanced JavaScript grid/spreadsheet component
58-
59-
Some highlights:
60-
61-
* Adaptive virtual scrolling (handle hundreds of thousands of rows with extreme responsiveness)
62-
* Extremely fast rendering speed
63-
* Supports jQuery UI Themes
64-
* Background post-rendering for richer cells
65-
* Configurable & customizable
66-
* Full keyboard navigation
67-
* Column resize/reorder/show/hide
68-
* Column autosizing & force-fit
69-
* Pluggable cell formatters & editors
70-
* Support for editing and creating new rows.
71-
* Grouping, filtering, custom aggregators, and more!
72-
* Advanced detached & multi-field editors with undo/redo support.
73-
* “GlobalEditorLock” to manage concurrent edits in cases where multiple Views on a page can edit the same data.
74-
* Support for [millions of rows](http://stackoverflow.com/a/2569488/1269037)
48+
Original mleibman [wiki](https://github.com/mleibman/SlickGrid/wiki).

examples/example-autocomplete-editor.html

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66
<link rel="stylesheet" href="../slick.grid.css" type="text/css"/>
77
<link rel="stylesheet" href="../css/smoothness/jquery-ui-1.11.3.custom.css" type="text/css"/>
88
<link rel="stylesheet" href="examples.css" type="text/css"/>
9-
<style>
10-
.cell-title {
11-
font-weight: bold;
12-
}
13-
14-
.cell-effort-driven {
15-
text-align: center;
16-
}
17-
</style>
189
</head>
1910
<body>
2011
<div style="position:relative">
@@ -25,8 +16,7 @@
2516
<div class="options-panel">
2617
<h2>Demonstrates:</h2>
2718
<ul>
28-
<li>adding basic keyboard navigation and editing</li>
29-
<li>custom editors and validators</li>
19+
<li>jQueryUI 'Autocomplete' javascript editor</li>
3020
<li>auto-edit settings</li>
3121
</ul>
3222

@@ -36,7 +26,7 @@ <h2>Options:</h2>
3626
<button onclick="grid.setOptions({autoEdit:false})">Auto-edit OFF</button>
3727
<h2>View Source:</h2>
3828
<ul>
39-
<li><A href="https://github.com/6pac/SlickGrid/blob/master/examples/example-chosen-editor.html" target="_sourcewindow"> View the source for this example on Github</a></li>
29+
<li><A href="https://github.com/6pac/SlickGrid/blob/master/examples/example-autocomplete-editor.html" target="_sourcewindow"> View the source for this example on Github</a></li>
4030
</ul>
4131
</div>
4232
</div>
@@ -311,15 +301,6 @@ <h2>View Source:</h2>
311301
$input = $("<INPUT id='tags' class='editor-text' />");
312302
$input.appendTo(args.container);
313303
$input.focus().select();
314-
//$input.on("keydown.nav", function (e) {
315-
// if ((e.keyCode == $.ui.keyCode.DOWN || e.keyCode == $.ui.keyCode.UP ||
316-
// e.keyCode == $.ui.keyCode.ENTER)
317-
// && $('ul.ui-autocomplete').is(':visible')) e.stopPropagation();
318-
319-
// if (e.keyCode == $.ui.keyCode.LEFT || e.keyCode == $.ui.keyCode.RIGHT)
320-
// e.stopImmediatePropagation();
321-
//});
322-
minLength: 3,
323304

324305
$input.autocomplete({
325306
source: args.column.dataSource
@@ -390,7 +371,7 @@ <h2>View Source:</h2>
390371
d["duration"] = "5 days";
391372
d["start"] = "01/01/2009";
392373
d["finish"] = "01/05/2009";
393-
d["country"] = countryList[Math.round(Math.random() * countryList.length)];
374+
d["country"] = countryList[Math.trunc(Math.random() * countryList.length)];
394375
}
395376

396377
grid = new Slick.Grid("#myGrid", data, columns, options);

0 commit comments

Comments
 (0)