Skip to content

Commit 1fbb899

Browse files
committed
Initial release
1 parent f6c3e88 commit 1fbb899

File tree

5 files changed

+460
-6
lines changed

5 files changed

+460
-6
lines changed

LICENSE

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
The MIT License (MIT)
1+
Modified work:
2+
Copyright (c) Gyrocode
3+
http://www.gyrocode.com
24

3-
Copyright (c) 2016 Gyrocode
5+
Original work:
6+
Copyright (c) 2010-2015 SpryMedia Limited
7+
http://datatables.net
48

59
Permission is hereby granted, free of charge, to any person obtaining a copy
610
of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +13,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
913
copies of the Software, and to permit persons to whom the Software is
1014
furnished to do so, subject to the following conditions:
1115

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
16+
The above copyright notice and this permission notice shall be included in
17+
all copies or substantial portions of the Software.
1418

1519
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1620
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1721
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1822
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1923
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
24+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25+
THE SOFTWARE.

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
jQuery DataTables Alphabetical Search
2+
=====================================
3+
4+
AlphabetSearch is a feature plug-in for the jQuery DataTables library
5+
that provides alphabetical search feature.
6+
7+
More information and examples is available at
8+
[gyrocode.com/articles/jquery-datatables-alphabetical-search](http://www.gyrocode.com/articles/jquery-datatables-alphabetical-search/).
9+
10+
11+
How to use
12+
----------
13+
14+
````
15+
$('#example').DataTable({
16+
dom: 'Alfrtip',
17+
alphabetSearch: {
18+
column: 0
19+
}
20+
});
21+
````
22+
23+
24+
Copyright
25+
---------
26+
27+
* SpryMedia Limited, [datatables.net](http://datatables.net)
28+
* Gyrocode, [gyrocode.com](http://www.gyrocode.com)
29+
30+
31+
License
32+
-------
33+
34+
MIT License, [opensource.org/licenses/MIT](http://www.opensource.org/licenses/MIT)

css/dataTables.alphabetSearch.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
div.alphabet {
2+
position: relative;
3+
display: table;
4+
width: 100%;
5+
margin-bottom: 1em;
6+
}
7+
8+
div.alphabet span {
9+
display: table-cell;
10+
color: #3174c7;
11+
cursor: pointer;
12+
text-align: center;
13+
width: 3.5%;
14+
}
15+
16+
div.alphabet span:hover {
17+
text-decoration: underline;
18+
}
19+
20+
div.alphabet span.active {
21+
color: black;
22+
}
23+
24+
div.alphabet span.empty {
25+
color: red;
26+
}
27+
28+
div.alphabet_info {
29+
display: block;
30+
position: absolute;
31+
background-color: #111;
32+
border-radius: 3px;
33+
color: white;
34+
top: 2em;
35+
height: 1.8em;
36+
padding-top: 0.4em;
37+
text-align: center;
38+
z-index: 1;
39+
}
40+
41+
tr.alphabet_group, tr.alphabet_group:hover {
42+
background-color: rgba(0,0,0,0.15) !important;
43+
}

0 commit comments

Comments
 (0)