mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-17 05:06:49 +02:00
Removed doco files
This commit is contained in:
parent
2bb716dd66
commit
37b222527e
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,6 +1,6 @@
|
|||
node_modules
|
||||
|
||||
npm-debug.log
|
||||
doc
|
||||
*.js.map
|
||||
.codio
|
||||
.settings
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,131 +0,0 @@
|
|||
{
|
||||
"type": "Program",
|
||||
"body": [
|
||||
{
|
||||
"type": "ImportDeclaration",
|
||||
"specifiers": [
|
||||
{
|
||||
"type": "ImportDefaultSpecifier",
|
||||
"local": {
|
||||
"type": "Identifier",
|
||||
"name": "AdapterEzEditTable",
|
||||
"range": [
|
||||
7,
|
||||
25
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 7
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 25
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
7,
|
||||
25
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 7
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 25
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"type": "Literal",
|
||||
"value": "./adapterEzEditTable",
|
||||
"raw": "'./adapterEzEditTable'",
|
||||
"range": [
|
||||
31,
|
||||
53
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 31
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 53
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
0,
|
||||
54
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 54
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ExportDefaultDeclaration",
|
||||
"declaration": {
|
||||
"type": "Identifier",
|
||||
"name": "AdapterEzEditTable",
|
||||
"range": [
|
||||
73,
|
||||
91
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 15
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 33
|
||||
}
|
||||
},
|
||||
"leadingComments": [],
|
||||
"trailingComments": []
|
||||
},
|
||||
"range": [
|
||||
58,
|
||||
92
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 34
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"sourceType": "module",
|
||||
"range": [
|
||||
0,
|
||||
92
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 34
|
||||
}
|
||||
},
|
||||
"comments": []
|
||||
}
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,353 +0,0 @@
|
|||
{
|
||||
"type": "Program",
|
||||
"body": [
|
||||
{
|
||||
"type": "ImportDeclaration",
|
||||
"specifiers": [
|
||||
{
|
||||
"type": "ImportDefaultSpecifier",
|
||||
"local": {
|
||||
"type": "Identifier",
|
||||
"name": "AdapterSortableTable",
|
||||
"range": [
|
||||
42,
|
||||
62
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 7
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 27
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
42,
|
||||
62
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 7
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 27
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"type": "Literal",
|
||||
"value": "./adapterSortabletable",
|
||||
"raw": "'./adapterSortabletable'",
|
||||
"range": [
|
||||
68,
|
||||
92
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 33
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 57
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
35,
|
||||
93
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 58
|
||||
}
|
||||
},
|
||||
"leadingComments": [
|
||||
{
|
||||
"type": "Line",
|
||||
"value": " import 'script!sortabletable';",
|
||||
"range": [
|
||||
0,
|
||||
33
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 33
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "IfStatement",
|
||||
"test": {
|
||||
"type": "UnaryExpression",
|
||||
"operator": "!",
|
||||
"argument": {
|
||||
"type": "MemberExpression",
|
||||
"computed": false,
|
||||
"object": {
|
||||
"type": "Identifier",
|
||||
"name": "window",
|
||||
"range": [
|
||||
101,
|
||||
107
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 4
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
"property": {
|
||||
"type": "Identifier",
|
||||
"name": "SortableTable",
|
||||
"range": [
|
||||
108,
|
||||
121
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 11
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 24
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
101,
|
||||
121
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 4
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 24
|
||||
}
|
||||
}
|
||||
},
|
||||
"prefix": true,
|
||||
"range": [
|
||||
100,
|
||||
121
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 3
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 24
|
||||
}
|
||||
}
|
||||
},
|
||||
"consequent": {
|
||||
"type": "BlockStatement",
|
||||
"body": [
|
||||
{
|
||||
"type": "ExpressionStatement",
|
||||
"expression": {
|
||||
"type": "CallExpression",
|
||||
"callee": {
|
||||
"type": "Identifier",
|
||||
"name": "require",
|
||||
"range": [
|
||||
129,
|
||||
136
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 4
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 11
|
||||
}
|
||||
}
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Literal",
|
||||
"value": "script!sortabletable",
|
||||
"raw": "'script!sortabletable'",
|
||||
"range": [
|
||||
137,
|
||||
159
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 34
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"range": [
|
||||
129,
|
||||
160
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 4
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 35
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
129,
|
||||
161
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 4
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 36
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"range": [
|
||||
122,
|
||||
164
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 25
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"alternate": null,
|
||||
"range": [
|
||||
97,
|
||||
164
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ExportDefaultDeclaration",
|
||||
"declaration": {
|
||||
"type": "Identifier",
|
||||
"name": "AdapterSortableTable",
|
||||
"range": [
|
||||
183,
|
||||
203
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 8,
|
||||
"column": 15
|
||||
},
|
||||
"end": {
|
||||
"line": 8,
|
||||
"column": 35
|
||||
}
|
||||
},
|
||||
"leadingComments": [],
|
||||
"trailingComments": []
|
||||
},
|
||||
"range": [
|
||||
168,
|
||||
204
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 8,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 8,
|
||||
"column": 36
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"sourceType": "module",
|
||||
"range": [
|
||||
35,
|
||||
204
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 8,
|
||||
"column": 36
|
||||
}
|
||||
},
|
||||
"comments": [
|
||||
{
|
||||
"type": "Line",
|
||||
"value": " import 'script!sortabletable';",
|
||||
"range": [
|
||||
0,
|
||||
33
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 33
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,775 +0,0 @@
|
|||
{
|
||||
"type": "Program",
|
||||
"body": [
|
||||
{
|
||||
"type": "ImportDeclaration",
|
||||
"specifiers": [
|
||||
{
|
||||
"type": "ImportDefaultSpecifier",
|
||||
"local": {
|
||||
"type": "Identifier",
|
||||
"name": "Str",
|
||||
"range": [
|
||||
7,
|
||||
10
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 7
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
7,
|
||||
10
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 7
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"type": "Literal",
|
||||
"value": "./string",
|
||||
"raw": "'./string'",
|
||||
"range": [
|
||||
16,
|
||||
26
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 16
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 26
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
0,
|
||||
27
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 27
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ExportDefaultDeclaration",
|
||||
"declaration": {
|
||||
"type": "ObjectExpression",
|
||||
"properties": [
|
||||
{
|
||||
"type": "Property",
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"name": "ignoreCase",
|
||||
"range": [
|
||||
52,
|
||||
62
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 3
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 13
|
||||
}
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"type": "FunctionExpression",
|
||||
"id": null,
|
||||
"params": [
|
||||
{
|
||||
"type": "Identifier",
|
||||
"name": "a",
|
||||
"range": [
|
||||
63,
|
||||
64
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 14
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 15
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Identifier",
|
||||
"name": "b",
|
||||
"range": [
|
||||
66,
|
||||
67
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 17
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 18
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"type": "BlockStatement",
|
||||
"body": [
|
||||
{
|
||||
"type": "VariableDeclaration",
|
||||
"declarations": [
|
||||
{
|
||||
"type": "VariableDeclarator",
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"name": "x",
|
||||
"range": [
|
||||
83,
|
||||
84
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 13
|
||||
}
|
||||
}
|
||||
},
|
||||
"init": {
|
||||
"type": "CallExpression",
|
||||
"callee": {
|
||||
"type": "MemberExpression",
|
||||
"computed": false,
|
||||
"object": {
|
||||
"type": "Identifier",
|
||||
"name": "Str",
|
||||
"range": [
|
||||
87,
|
||||
90
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 16
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 19
|
||||
}
|
||||
}
|
||||
},
|
||||
"property": {
|
||||
"type": "Identifier",
|
||||
"name": "lower",
|
||||
"range": [
|
||||
91,
|
||||
96
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 20
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 25
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
87,
|
||||
96
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 16
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 25
|
||||
}
|
||||
}
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Identifier",
|
||||
"name": "a",
|
||||
"range": [
|
||||
97,
|
||||
98
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 26
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 27
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"range": [
|
||||
87,
|
||||
99
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 16
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 28
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
83,
|
||||
99
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 28
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"kind": "let",
|
||||
"range": [
|
||||
79,
|
||||
100
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 29
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "VariableDeclaration",
|
||||
"declarations": [
|
||||
{
|
||||
"type": "VariableDeclarator",
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"name": "y",
|
||||
"range": [
|
||||
114,
|
||||
115
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 6,
|
||||
"column": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 13
|
||||
}
|
||||
}
|
||||
},
|
||||
"init": {
|
||||
"type": "CallExpression",
|
||||
"callee": {
|
||||
"type": "MemberExpression",
|
||||
"computed": false,
|
||||
"object": {
|
||||
"type": "Identifier",
|
||||
"name": "Str",
|
||||
"range": [
|
||||
118,
|
||||
121
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 6,
|
||||
"column": 16
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 19
|
||||
}
|
||||
}
|
||||
},
|
||||
"property": {
|
||||
"type": "Identifier",
|
||||
"name": "lower",
|
||||
"range": [
|
||||
122,
|
||||
127
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 6,
|
||||
"column": 20
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 25
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
118,
|
||||
127
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 6,
|
||||
"column": 16
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 25
|
||||
}
|
||||
}
|
||||
},
|
||||
"arguments": [
|
||||
{
|
||||
"type": "Identifier",
|
||||
"name": "b",
|
||||
"range": [
|
||||
128,
|
||||
129
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 6,
|
||||
"column": 26
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 27
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"range": [
|
||||
118,
|
||||
130
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 6,
|
||||
"column": 16
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 28
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
114,
|
||||
130
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 6,
|
||||
"column": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 28
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"kind": "let",
|
||||
"range": [
|
||||
110,
|
||||
131
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 6,
|
||||
"column": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 29
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ReturnStatement",
|
||||
"argument": {
|
||||
"type": "ConditionalExpression",
|
||||
"test": {
|
||||
"type": "BinaryExpression",
|
||||
"operator": "<",
|
||||
"left": {
|
||||
"type": "Identifier",
|
||||
"name": "x",
|
||||
"range": [
|
||||
150,
|
||||
151
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 17
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 18
|
||||
}
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Identifier",
|
||||
"name": "y",
|
||||
"range": [
|
||||
154,
|
||||
155
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 21
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 22
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
150,
|
||||
155
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 17
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 22
|
||||
}
|
||||
}
|
||||
},
|
||||
"consequent": {
|
||||
"type": "UnaryExpression",
|
||||
"operator": "-",
|
||||
"argument": {
|
||||
"type": "Literal",
|
||||
"value": 1,
|
||||
"raw": "1",
|
||||
"range": [
|
||||
160,
|
||||
161
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 27
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 28
|
||||
}
|
||||
}
|
||||
},
|
||||
"prefix": true,
|
||||
"range": [
|
||||
159,
|
||||
161
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 26
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 28
|
||||
}
|
||||
}
|
||||
},
|
||||
"alternate": {
|
||||
"type": "ConditionalExpression",
|
||||
"test": {
|
||||
"type": "BinaryExpression",
|
||||
"operator": ">",
|
||||
"left": {
|
||||
"type": "Identifier",
|
||||
"name": "x",
|
||||
"range": [
|
||||
166,
|
||||
167
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 33
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 34
|
||||
}
|
||||
}
|
||||
},
|
||||
"right": {
|
||||
"type": "Identifier",
|
||||
"name": "y",
|
||||
"range": [
|
||||
170,
|
||||
171
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 37
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 38
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
166,
|
||||
171
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 33
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 38
|
||||
}
|
||||
}
|
||||
},
|
||||
"consequent": {
|
||||
"type": "Literal",
|
||||
"value": 1,
|
||||
"raw": "1",
|
||||
"range": [
|
||||
175,
|
||||
176
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 42
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 43
|
||||
}
|
||||
}
|
||||
},
|
||||
"alternate": {
|
||||
"type": "Literal",
|
||||
"value": 0,
|
||||
"raw": "0",
|
||||
"range": [
|
||||
179,
|
||||
180
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 46
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 47
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
165,
|
||||
180
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 32
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 47
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
149,
|
||||
181
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 16
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 48
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": [
|
||||
141,
|
||||
183
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 50
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"range": [
|
||||
68,
|
||||
190
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 19
|
||||
},
|
||||
"end": {
|
||||
"line": 8,
|
||||
"column": 5
|
||||
}
|
||||
}
|
||||
},
|
||||
"generator": false,
|
||||
"expression": false,
|
||||
"range": [
|
||||
62,
|
||||
190
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 13
|
||||
},
|
||||
"end": {
|
||||
"line": 8,
|
||||
"column": 5
|
||||
}
|
||||
}
|
||||
},
|
||||
"kind": "init",
|
||||
"method": true,
|
||||
"shorthand": false,
|
||||
"computed": false,
|
||||
"range": [
|
||||
52,
|
||||
190
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 3
|
||||
},
|
||||
"end": {
|
||||
"line": 8,
|
||||
"column": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"range": [
|
||||
46,
|
||||
193
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 15
|
||||
},
|
||||
"end": {
|
||||
"line": 9,
|
||||
"column": 1
|
||||
}
|
||||
},
|
||||
"leadingComments": [],
|
||||
"trailingComments": []
|
||||
},
|
||||
"range": [
|
||||
31,
|
||||
194
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 9,
|
||||
"column": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"sourceType": "module",
|
||||
"range": [
|
||||
0,
|
||||
194
|
||||
],
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 9,
|
||||
"column": 2
|
||||
}
|
||||
},
|
||||
"comments": []
|
||||
}
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,713 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../../">
|
||||
<title data-ice="title">ColOps | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><div class="header-notice">
|
||||
<div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import ColOps from '<span><a href="file/src/extensions/colOps/colOps.js.html#lineNumber5">TableFilter/src/extensions/colOps/colOps.js</a></span>'</code></pre></div>
|
||||
<span data-ice="access">public</span>
|
||||
<span data-ice="kind">class</span>
|
||||
|
||||
|
||||
|
||||
<span data-ice="source">| <span><a href="file/src/extensions/colOps/colOps.js.html#lineNumber5">source</a></span></span>
|
||||
</div>
|
||||
|
||||
<div class="self-detail detail">
|
||||
<h1 data-ice="name">ColOps</h1>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="constructorSummary"><h2>Constructor Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Constructor</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html#instance-constructor-constructor">constructor</a></span></span><span data-ice="signature">(tf: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Column calculations</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div data-ice="memberSummary"><h2>Member Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Members</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-onAfterOperation">onAfterOperation</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-onBeforeOperation">onBeforeOperation</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-opts">opts</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html#instance-member-tf">tf</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div data-ice="methodSummary"><h2>Method Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Methods</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-calc">calc</a></span></span><span data-ice="signature">()</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Calculates columns' values
|
||||
</p></div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-destroy">destroy</a></span></span><span data-ice="signature">()</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html#instance-method-init">init</a></span></span><span data-ice="signature">()</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="constructorDetails"><h2 data-ice="title">Public Constructors</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-constructor-constructor">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">constructor</span><span data-ice="signature">(tf: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/extensions/colOps/colOps.js.html#lineNumber11">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Column calculations</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">tf</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>TableFilter instance</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div data-ice="memberDetails"><h2 data-ice="title">Public Members</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-onAfterOperation">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">onAfterOperation</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/extensions/colOps/colOps.js.html#lineNumber17">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-onBeforeOperation">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">onBeforeOperation</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/extensions/colOps/colOps.js.html#lineNumber14">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-opts">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">opts</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/extensions/colOps/colOps.js.html#lineNumber20">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-tf">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">tf</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/extensions/colOps/colOps.js.html#lineNumber21">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div data-ice="methodDetails"><h2 data-ice="title">Public Methods</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-calc">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">calc</span><span data-ice="signature">()</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/extensions/colOps/colOps.js.html#lineNumber44">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Calculates columns' values
|
||||
Configuration options are stored in 'opts' property</p>
|
||||
<ul>
|
||||
<li>'id' contains ids of elements showing result (array)</li>
|
||||
<li>'col' contains the columns' indexes (array)</li>
|
||||
<li>'operation' contains operation type (array, values: 'sum', 'mean',
|
||||
'min', 'max', 'median', 'q1', 'q3')</li>
|
||||
<li>'write_method' array defines which method to use for displaying the
|
||||
result (innerHTML, setValue, createTextNode) - default: 'innerHTML'</li>
|
||||
<li><p>'tot_row_index' defines in which row results are displayed
|
||||
(integers array)</p>
|
||||
</li>
|
||||
<li><p>changes made by Nuovella:
|
||||
(1) optimized the routine (now it will only process each column once),
|
||||
(2) added calculations for the median, lower and upper quartile.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-destroy">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">destroy</span><span data-ice="signature">()</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/extensions/colOps/colOps.js.html#lineNumber313">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-init">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">init</span><span data-ice="signature">()</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/extensions/colOps/colOps.js.html#lineNumber24">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,875 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">AlternateRows | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><div class="header-notice">
|
||||
<div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {AlternateRows} from '<span><a href="file/src/modules/alternateRows.js.html#lineNumber3">TableFilter/src/modules/alternateRows.js</a></span>'</code></pre></div>
|
||||
<span data-ice="access">public</span>
|
||||
<span data-ice="kind">class</span>
|
||||
|
||||
|
||||
|
||||
<span data-ice="source">| <span><a href="file/src/modules/alternateRows.js.html#lineNumber3">source</a></span></span>
|
||||
</div>
|
||||
|
||||
<div class="self-detail detail">
|
||||
<h1 data-ice="name">AlternateRows</h1>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="constructorSummary"><h2>Constructor Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Constructor</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html#instance-constructor-constructor">constructor</a></span></span><span data-ice="signature">(tf: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Alternating rows color</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div data-ice="memberSummary"><h2>Member Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Members</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html#instance-member-evenCss">evenCss</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html#instance-member-oddCss">oddCss</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html#instance-member-tf">tf</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div data-ice="methodSummary"><h2>Method Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Methods</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html#instance-method-disable">disable</a></span></span><span data-ice="signature">()</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html#instance-method-enable">enable</a></span></span><span data-ice="signature">()</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html#instance-method-init">init</a></span></span><span data-ice="signature">()</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Sets alternating rows color</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html#instance-method-remove">remove</a></span></span><span data-ice="signature">()</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Removes all alternating backgrounds</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html#instance-method-removeRowBg">removeRowBg</a></span></span><span data-ice="signature">(idx: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Removes row background color</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html#instance-method-setRowBg">setRowBg</a></span></span><span data-ice="signature">(rowIdx: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, idx: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Sets row background color</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="constructorDetails"><h2 data-ice="title">Public Constructors</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-constructor-constructor">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">constructor</span><span data-ice="signature">(tf: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/alternateRows.js.html#lineNumber9">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Alternating rows color</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">tf</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>TableFilter instance</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div data-ice="memberDetails"><h2 data-ice="title">Public Members</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-evenCss">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">evenCss</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/alternateRows.js.html#lineNumber12">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-oddCss">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">oddCss</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/alternateRows.js.html#lineNumber14">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-tf">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">tf</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/alternateRows.js.html#lineNumber16">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div data-ice="methodDetails"><h2 data-ice="title">Public Methods</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-disable">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">disable</span><span data-ice="signature">()</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/alternateRows.js.html#lineNumber94">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-enable">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">enable</span><span data-ice="signature">()</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/alternateRows.js.html#lineNumber90">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-init">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">init</span><span data-ice="signature">()</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/alternateRows.js.html#lineNumber22">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Sets alternating rows color</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-remove">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">remove</span><span data-ice="signature">()</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/alternateRows.js.html#lineNumber81">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Removes all alternating backgrounds</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-removeRowBg">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">removeRowBg</span><span data-ice="signature">(idx: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/alternateRows.js.html#lineNumber69">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Removes row background color</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">idx</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>Row index</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-setRowBg">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">setRowBg</span><span data-ice="signature">(rowIdx: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, idx: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/alternateRows.js.html#lineNumber51">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Sets row background color</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">rowIdx</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>Row index</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">idx</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>Valid rows collection index needed to calculate bg
|
||||
color</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load diff
|
@ -1,894 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">ClearButton | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><div class="header-notice">
|
||||
<div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {ClearButton} from '<span><a href="file/src/modules/clearButton.js.html#lineNumber4">TableFilter/src/modules/clearButton.js</a></span>'</code></pre></div>
|
||||
<span data-ice="access">public</span>
|
||||
<span data-ice="kind">class</span>
|
||||
|
||||
|
||||
|
||||
<span data-ice="source">| <span><a href="file/src/modules/clearButton.js.html#lineNumber4">source</a></span></span>
|
||||
</div>
|
||||
|
||||
<div class="self-detail detail">
|
||||
<h1 data-ice="name">ClearButton</h1>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="constructorSummary"><h2>Constructor Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Constructor</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html#instance-constructor-constructor">constructor</a></span></span><span data-ice="signature">(tf: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Clear button component</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div data-ice="memberSummary"><h2>Member Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Members</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html#instance-member-btnResetEl">btnResetEl</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html#instance-member-btnResetHtml">btnResetHtml</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html#instance-member-btnResetText">btnResetText</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html#instance-member-btnResetTgtId">btnResetTgtId</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html#instance-member-btnResetTooltip">btnResetTooltip</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html#instance-member-prfxResetSpan">prfxResetSpan</a></span></span><span data-ice="signature">: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html#instance-member-tf">tf</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div data-ice="methodSummary"><h2>Method Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Methods</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html#instance-method-destroy">destroy</a></span></span><span data-ice="signature">()</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Remove clear button UI</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html#instance-method-init">init</a></span></span><span data-ice="signature">()</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Build DOM elements</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html#instance-method-onClick">onClick</a></span></span><span data-ice="signature">()</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="constructorDetails"><h2 data-ice="title">Public Constructors</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-constructor-constructor">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">constructor</span><span data-ice="signature">(tf: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/clearButton.js.html#lineNumber10">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Clear button component</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">tf</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>TableFilter instance</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div data-ice="memberDetails"><h2 data-ice="title">Public Members</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-btnResetEl">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">btnResetEl</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/clearButton.js.html#lineNumber17">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-btnResetHtml">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">btnResetHtml</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/clearButton.js.html#lineNumber23">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-btnResetText">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">btnResetText</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/clearButton.js.html#lineNumber19">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-btnResetTgtId">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">btnResetTgtId</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/clearButton.js.html#lineNumber15">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-btnResetTooltip">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">btnResetTooltip</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/clearButton.js.html#lineNumber21">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-prfxResetSpan">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">prfxResetSpan</span><span data-ice="signature">: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/clearButton.js.html#lineNumber28">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-tf">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">tf</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/clearButton.js.html#lineNumber30">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div data-ice="methodDetails"><h2 data-ice="title">Public Methods</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-destroy">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">destroy</span><span data-ice="signature">()</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/clearButton.js.html#lineNumber76">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Remove clear button UI</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-init">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">init</span><span data-ice="signature">()</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/clearButton.js.html#lineNumber40">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Build DOM elements</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-onClick">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">onClick</span><span data-ice="signature">()</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/clearButton.js.html#lineNumber33">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,689 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">HighlightKeyword | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><div class="header-notice">
|
||||
<div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {HighlightKeyword} from '<span><a href="file/src/modules/highlightKeywords.js.html#lineNumber4">TableFilter/src/modules/highlightKeywords.js</a></span>'</code></pre></div>
|
||||
<span data-ice="access">public</span>
|
||||
<span data-ice="kind">class</span>
|
||||
|
||||
|
||||
|
||||
<span data-ice="source">| <span><a href="file/src/modules/highlightKeywords.js.html#lineNumber4">source</a></span></span>
|
||||
</div>
|
||||
|
||||
<div class="self-detail detail">
|
||||
<h1 data-ice="name">HighlightKeyword</h1>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="constructorSummary"><h2>Constructor Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Constructor</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html#instance-constructor-constructor">constructor</a></span></span><span data-ice="signature">(tf: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>HighlightKeyword, highlight matched keyword</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div data-ice="memberSummary"><h2>Member Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Members</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html#instance-member-highlightCssClass">highlightCssClass</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html#instance-member-highlightedNodes">highlightedNodes</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html#instance-member-tf">tf</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div data-ice="methodSummary"><h2>Method Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Methods</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html#instance-method-highlight">highlight</a></span></span><span data-ice="signature">(node: <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Node">Node</a></span>, word: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>, cssClass: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>highlight occurences of searched term in passed node</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html#instance-method-unhighlight">unhighlight</a></span></span><span data-ice="signature">(word: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>, cssClass: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Removes highlight to nodes matching passed string</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html#instance-method-unhighlightAll">unhighlightAll</a></span></span><span data-ice="signature">()</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Clear all occurrences of highlighted nodes</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="constructorDetails"><h2 data-ice="title">Public Constructors</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-constructor-constructor">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">constructor</span><span data-ice="signature">(tf: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/highlightKeywords.js.html#lineNumber10">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>HighlightKeyword, highlight matched keyword</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">tf</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>TableFilter instance</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div data-ice="memberDetails"><h2 data-ice="title">Public Members</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-highlightCssClass">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">highlightCssClass</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/highlightKeywords.js.html#lineNumber13">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-highlightedNodes">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">highlightedNodes</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/highlightKeywords.js.html#lineNumber14">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-tf">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">tf</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/highlightKeywords.js.html#lineNumber16">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div data-ice="methodDetails"><h2 data-ice="title">Public Methods</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-highlight">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">highlight</span><span data-ice="signature">(node: <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Node">Node</a></span>, word: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>, cssClass: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/highlightKeywords.js.html#lineNumber25">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>highlight occurences of searched term in passed node</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">node</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Node">Node</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"></td>
|
||||
</tr>
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">word</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>Searched term</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">cssClass</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>Css class name</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-unhighlight">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">unhighlight</span><span data-ice="signature">(word: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>, cssClass: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/highlightKeywords.js.html#lineNumber66">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Removes highlight to nodes matching passed string</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">word</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"></td>
|
||||
</tr>
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">cssClass</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>Css class to remove</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-unhighlightAll">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">unhighlightAll</span><span data-ice="signature">()</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/highlightKeywords.js.html#lineNumber98">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Clear all occurrences of highlighted nodes</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,905 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">Store | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><div class="header-notice">
|
||||
<div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {Store} from '<span><a href="file/src/modules/store.js.html#lineNumber3">TableFilter/src/modules/store.js</a></span>'</code></pre></div>
|
||||
<span data-ice="access">public</span>
|
||||
<span data-ice="kind">class</span>
|
||||
|
||||
|
||||
|
||||
<span data-ice="source">| <span><a href="file/src/modules/store.js.html#lineNumber3">source</a></span></span>
|
||||
</div>
|
||||
|
||||
<div class="self-detail detail">
|
||||
<h1 data-ice="name">Store</h1>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="constructorSummary"><h2>Constructor Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Constructor</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/store.js~Store.html#instance-constructor-constructor">constructor</a></span></span><span data-ice="signature">(tf: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Store, persistence manager</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div data-ice="memberSummary"><h2>Member Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Members</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/store.js~Store.html#instance-member-duration">duration</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/store.js~Store.html#instance-member-tf">tf</a></span></span><span data-ice="signature">: <span>*</span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div data-ice="methodSummary"><h2>Method Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Public Methods</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/store.js~Store.html#instance-method-getFilterValues">getFilterValues</a></span></span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Retrieve filters' values from cookie</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/store.js~Store.html#instance-method-getPageLength">getPageLength</a></span></span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Retrieve page length from cookie</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/store.js~Store.html#instance-method-getPageNb">getPageNb</a></span></span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Retrieve page number from cookie</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/store.js~Store.html#instance-method-saveFilterValues">saveFilterValues</a></span></span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Store filters' values in cookie</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/store.js~Store.html#instance-method-savePageLength">savePageLength</a></span></span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Store page length in cookie</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/store.js~Store.html#instance-method-savePageNb">savePageNb</a></span></span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>)</span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<div data-ice="description"><p>Store page number in cookie</p>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="constructorDetails"><h2 data-ice="title">Public Constructors</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-constructor-constructor">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">constructor</span><span data-ice="signature">(tf: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/store.js.html#lineNumber11">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Store, persistence manager</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">tf</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>TableFilter instance</p>
|
||||
<p>TODO: use localStorage and fallback to cookie persistence</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div data-ice="memberDetails"><h2 data-ice="title">Public Members</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-duration">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">duration</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/store.js.html#lineNumber14">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-member-tf">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">tf</span><span data-ice="signature">: <span>*</span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/store.js.html#lineNumber17">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div data-ice="methodDetails"><h2 data-ice="title">Public Methods</h2>
|
||||
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-getFilterValues">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">getFilterValues</span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a></span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/store.js.html#lineNumber51">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Retrieve filters' values from cookie</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">cookie</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>name</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="return-params" data-ice="returnParams">
|
||||
<h4>Return:</h4>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="return-type" data-ice="returnType"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a></span></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<div data-ice="returnProperties">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-getPageLength">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">getPageLength</span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/store.js.html#lineNumber96">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Retrieve page length from cookie</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">cookie</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>name</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="return-params" data-ice="returnParams">
|
||||
<h4>Return:</h4>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="return-type" data-ice="returnType"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<div data-ice="returnProperties">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-getPageNb">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">getPageNb</span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/store.js.html#lineNumber75">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Retrieve page number from cookie</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">cookie</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>name</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="return-params" data-ice="returnParams">
|
||||
<h4>Return:</h4>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="return-type" data-ice="returnType"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<div data-ice="returnProperties">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-saveFilterValues">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">saveFilterValues</span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/store.js.html#lineNumber24">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Store filters' values in cookie</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">cookie</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>name</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-savePageLength">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">savePageLength</span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/store.js.html#lineNumber83">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Store page length in cookie</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">cookie</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>name</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="detail" data-ice="detail">
|
||||
<h3 data-ice="anchor" id="instance-method-savePageNb">
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span data-ice="name">savePageNb</span><span data-ice="signature">(cookie: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>)</span>
|
||||
<span class="right-info">
|
||||
|
||||
|
||||
<span data-ice="source"><span><a href="file/src/modules/store.js.html#lineNumber62">source</a></span></span>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-ice="description"><p>Store page number in cookie</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div data-ice="properties"><div data-ice="properties">
|
||||
<h4 data-ice="title">Params:</h4>
|
||||
<table class="params">
|
||||
<thead>
|
||||
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="property" data-depth="0">
|
||||
<td data-ice="name" data-depth="0">cookie</td>
|
||||
<td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td>
|
||||
<td data-ice="appendix"></td>
|
||||
<td data-ice="description"><p>name</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load diff
|
@ -1,83 +0,0 @@
|
|||
{
|
||||
"coverage": "24.41%",
|
||||
"expectCount": 643,
|
||||
"actualCount": 157,
|
||||
"files": {
|
||||
"src/extensions/advancedGrid/adapterEzEditTable.js": {
|
||||
"expectCount": 15,
|
||||
"actualCount": 4
|
||||
},
|
||||
"src/extensions/sort/adapterSortabletable.js": {
|
||||
"expectCount": 28,
|
||||
"actualCount": 4
|
||||
},
|
||||
"src/modules/alternateRows.js": {
|
||||
"expectCount": 11,
|
||||
"actualCount": 5
|
||||
},
|
||||
"src/modules/checkList.js": {
|
||||
"expectCount": 22,
|
||||
"actualCount": 5
|
||||
},
|
||||
"src/modules/clearButton.js": {
|
||||
"expectCount": 12,
|
||||
"actualCount": 3
|
||||
},
|
||||
"src/extensions/colOps/colOps.js": {
|
||||
"expectCount": 9,
|
||||
"actualCount": 2
|
||||
},
|
||||
"src/extensions/colsVisibility/colsVisibility.js": {
|
||||
"expectCount": 58,
|
||||
"actualCount": 10
|
||||
},
|
||||
"src/modules/dropdown.js": {
|
||||
"expectCount": 15,
|
||||
"actualCount": 4
|
||||
},
|
||||
"src/tablefilter.js": {
|
||||
"expectCount": 237,
|
||||
"actualCount": 72
|
||||
},
|
||||
"src/extensions/filtersVisibility/filtersVisibility.js": {
|
||||
"expectCount": 33,
|
||||
"actualCount": 5
|
||||
},
|
||||
"src/modules/gridLayout.js": {
|
||||
"expectCount": 27,
|
||||
"actualCount": 3
|
||||
},
|
||||
"src/modules/help.js": {
|
||||
"expectCount": 19,
|
||||
"actualCount": 3
|
||||
},
|
||||
"src/modules/highlightKeywords.js": {
|
||||
"expectCount": 8,
|
||||
"actualCount": 4
|
||||
},
|
||||
"src/modules/loader.js": {
|
||||
"expectCount": 14,
|
||||
"actualCount": 1
|
||||
},
|
||||
"src/modules/paging.js": {
|
||||
"expectCount": 62,
|
||||
"actualCount": 14
|
||||
},
|
||||
"src/modules/popupFilter.js": {
|
||||
"expectCount": 27,
|
||||
"actualCount": 9
|
||||
},
|
||||
"src/modules/rowsCounter.js": {
|
||||
"expectCount": 18,
|
||||
"actualCount": 1
|
||||
},
|
||||
"src/modules/statusBar.js": {
|
||||
"expectCount": 18,
|
||||
"actualCount": 1
|
||||
},
|
||||
"src/modules/store.js": {
|
||||
"expectCount": 10,
|
||||
"actualCount": 7
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,132 +0,0 @@
|
|||
/* Tomorrow Theme */
|
||||
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
||||
/* Pretty printing styles. Used with prettify.js. */
|
||||
/* SPAN elements with the classes below are added by prettyprint. */
|
||||
/* plain text */
|
||||
.pln {
|
||||
color: #4d4d4c; }
|
||||
|
||||
@media screen {
|
||||
/* string content */
|
||||
.str {
|
||||
color: #718c00; }
|
||||
|
||||
/* a keyword */
|
||||
.kwd {
|
||||
color: #8959a8; }
|
||||
|
||||
/* a comment */
|
||||
.com {
|
||||
color: #8e908c; }
|
||||
|
||||
/* a type name */
|
||||
.typ {
|
||||
color: #4271ae; }
|
||||
|
||||
/* a literal value */
|
||||
.lit {
|
||||
color: #f5871f; }
|
||||
|
||||
/* punctuation */
|
||||
.pun {
|
||||
color: #4d4d4c; }
|
||||
|
||||
/* lisp open bracket */
|
||||
.opn {
|
||||
color: #4d4d4c; }
|
||||
|
||||
/* lisp close bracket */
|
||||
.clo {
|
||||
color: #4d4d4c; }
|
||||
|
||||
/* a markup tag name */
|
||||
.tag {
|
||||
color: #c82829; }
|
||||
|
||||
/* a markup attribute name */
|
||||
.atn {
|
||||
color: #f5871f; }
|
||||
|
||||
/* a markup attribute value */
|
||||
.atv {
|
||||
color: #3e999f; }
|
||||
|
||||
/* a declaration */
|
||||
.dec {
|
||||
color: #f5871f; }
|
||||
|
||||
/* a variable name */
|
||||
.var {
|
||||
color: #c82829; }
|
||||
|
||||
/* a function name */
|
||||
.fun {
|
||||
color: #4271ae; } }
|
||||
/* Use higher contrast and text-weight for printable form. */
|
||||
@media print, projection {
|
||||
.str {
|
||||
color: #060; }
|
||||
|
||||
.kwd {
|
||||
color: #006;
|
||||
font-weight: bold; }
|
||||
|
||||
.com {
|
||||
color: #600;
|
||||
font-style: italic; }
|
||||
|
||||
.typ {
|
||||
color: #404;
|
||||
font-weight: bold; }
|
||||
|
||||
.lit {
|
||||
color: #044; }
|
||||
|
||||
.pun, .opn, .clo {
|
||||
color: #440; }
|
||||
|
||||
.tag {
|
||||
color: #006;
|
||||
font-weight: bold; }
|
||||
|
||||
.atn {
|
||||
color: #404; }
|
||||
|
||||
.atv {
|
||||
color: #060; } }
|
||||
/* Style */
|
||||
/*
|
||||
pre.prettyprint {
|
||||
background: white;
|
||||
font-family: Consolas, Monaco, 'Andale Mono', monospace;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
border: 1px solid #ccc;
|
||||
padding: 10px; }
|
||||
*/
|
||||
|
||||
/* Specify class=linenums on a pre to get line numbering */
|
||||
ol.linenums {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0; }
|
||||
|
||||
/* IE indents via margin-left */
|
||||
li.L0,
|
||||
li.L1,
|
||||
li.L2,
|
||||
li.L3,
|
||||
li.L4,
|
||||
li.L5,
|
||||
li.L6,
|
||||
li.L7,
|
||||
li.L8,
|
||||
li.L9 {
|
||||
/* */ }
|
||||
|
||||
/* Alternate shading for lines */
|
||||
li.L1,
|
||||
li.L3,
|
||||
li.L5,
|
||||
li.L7,
|
||||
li.L9 {
|
||||
/* */ }
|
|
@ -1,715 +0,0 @@
|
|||
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700);
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
html
|
||||
{
|
||||
font-family: 'Roboto', sans-serif;
|
||||
overflow: auto;
|
||||
font-size: 14px;
|
||||
color: #4d4e53;
|
||||
background-color: #F9F9F9;
|
||||
}
|
||||
|
||||
a {
|
||||
/*color: #0095dd;*/
|
||||
color:rgb(37, 138, 175);
|
||||
}
|
||||
|
||||
code a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
ul li {
|
||||
list-style: disc;
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
ol li {
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-bottom: 10px;
|
||||
font-size: 34px;
|
||||
font-weight: 300;
|
||||
border-bottom: solid 1px #ddd;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-top: 24px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 20px;
|
||||
border-bottom: solid 1px #ddd;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
h3 {
|
||||
position: relative;
|
||||
font-size: 16px;
|
||||
margin-bottom: 12px;
|
||||
background-color: #E2E2E2;
|
||||
padding: 4px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 15px;
|
||||
line-height: 19px;
|
||||
}
|
||||
|
||||
pre.prettyprint {
|
||||
padding: 4px;
|
||||
border: solid 1px #ddd;
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
p > code,
|
||||
li > code {
|
||||
padding: 0 4px;
|
||||
background: #ddd;
|
||||
}
|
||||
|
||||
.import-path pre.prettyprint {
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.layout-container {
|
||||
/*display: flex;*/
|
||||
/*flex-direction: row;*/
|
||||
/*justify-content: flex-start;*/
|
||||
/*align-items: stretch;*/
|
||||
}
|
||||
|
||||
.layout-container > header {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
font-size: 16px;
|
||||
padding: 0 10px;
|
||||
margin: 0;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
background-color: #F9F9F9;
|
||||
top: 0;
|
||||
border-bottom: solid 1px #E02130;
|
||||
}
|
||||
.layout-container > header > a{
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
.layout-container > header > a.repo-url-github {
|
||||
font-size: 0;
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
height: 38px;
|
||||
background: url("../image/github.png") no-repeat center;
|
||||
background-size: 20px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.navigation {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
box-sizing: border-box;
|
||||
width: 200px;
|
||||
height: 100%;
|
||||
padding-top: 40px;
|
||||
padding-left: 15px;
|
||||
padding-bottom: 20px;
|
||||
overflow-x: scroll;
|
||||
box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset;
|
||||
border-right: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.navigation h1 {
|
||||
border: none;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.navigation h2 {
|
||||
margin: 15px 0 4px;
|
||||
font-size: 16px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.navigation h2 a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.navigation ul {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navigation li {
|
||||
list-style: none;
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
h1 .version,
|
||||
h1 .url a {
|
||||
font-size: 14px;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-top: 40px;
|
||||
margin-left: 200px;
|
||||
padding: 10px 50px 10px 20px;
|
||||
}
|
||||
|
||||
.header-notice {
|
||||
font-size: 14px;
|
||||
color: #aaa;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.expression-extends .prettyprint {
|
||||
margin-left: 10px;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.extends-chain {
|
||||
border-bottom: 1px solid#ddd;
|
||||
padding-bottom: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.extends-chain span:nth-of-type(1) {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.extends-chain > div {
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.description table {
|
||||
font-size: 14px;
|
||||
border-spacing: 0;
|
||||
border: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.description thead {
|
||||
background: #999;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.description table td,
|
||||
.description table th {
|
||||
border: solid 1px #ddd;
|
||||
padding: 4px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.flat-list ul {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.flat-list li {
|
||||
display: inline;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
table.summary {
|
||||
width: 100%;
|
||||
margin: 10px 0;
|
||||
border-spacing: 0;
|
||||
border: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.summary thead {
|
||||
background: #999;
|
||||
color: white;
|
||||
}
|
||||
|
||||
table.summary td {
|
||||
border: solid 1px #ddd;
|
||||
padding: 4px 10px;
|
||||
}
|
||||
|
||||
table.summary tbody td:nth-child(1) {
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
min-width: 64px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
table.summary tbody td:nth-child(2) {
|
||||
width: 100%;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
table.summary tbody td:nth-child(3) {
|
||||
white-space: nowrap;
|
||||
border-left: none;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
table.summary td > div:nth-of-type(2) {
|
||||
padding-top: 4px;
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
table.summary td p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.inherited-summary thead td {
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
||||
.inherited-summary thead a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.inherited-summary .summary tbody {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.inherited-summary .summary .toggle {
|
||||
padding: 0 4px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.inherited-summary .summary .toggle.closed:before {
|
||||
content: "▶";
|
||||
}
|
||||
.inherited-summary .summary .toggle.opened:before {
|
||||
content: "▼";
|
||||
}
|
||||
|
||||
.member, .method {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
table.params {
|
||||
width: 100%;
|
||||
margin: 10px 0;
|
||||
border-spacing: 0;
|
||||
border: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.params thead {
|
||||
background: #eee;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
table.params td {
|
||||
padding: 4px;
|
||||
border: solid 1px #ddd;
|
||||
}
|
||||
|
||||
table.params td p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.content .detail > * {
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.content .detail > h3 {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.content .detail > div {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.content .detail > .import-path {
|
||||
margin-top: -8px;
|
||||
}
|
||||
|
||||
.content .detail + .detail {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.content .detail .throw td:first-child {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.content .detail h4 + :not(pre) {
|
||||
padding-left: 0;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.content .detail h4 + ul li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.return-param * {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.argument-params {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.return-type {
|
||||
padding-right: 10px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.return-desc {
|
||||
margin-left: 10px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.return-desc p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.deprecated, .experimental, .instance-docs {
|
||||
border-left: solid 5px orange;
|
||||
padding-left: 4px;
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
tr.listen p,
|
||||
tr.throw p,
|
||||
tr.emit p{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.version, .since {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
h3 .right-info {
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.version + .since:before {
|
||||
content: '| ';
|
||||
}
|
||||
|
||||
.see {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.see h4 {
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
.content .detail h4 + .example-doc {
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
.example-caption {
|
||||
position: relative;
|
||||
bottom: -1px;
|
||||
display: inline-block;
|
||||
padding: 4px;
|
||||
border: solid 1px #ddd;
|
||||
border-bottom: none;
|
||||
font-style: italic;
|
||||
background-color: #eee;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.example-caption + pre.source-code {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
footer, .file-footer {
|
||||
text-align: right;
|
||||
font-style: italic;
|
||||
font-weight: 100;
|
||||
font-size: 13px;
|
||||
margin-right: 50px;
|
||||
margin-left: 220px;
|
||||
border-top: 1px solid #ddd;
|
||||
padding-top: 30px;
|
||||
margin-top: 20px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
pre.source-code {
|
||||
background: white;
|
||||
border: solid 1px #ddd;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
pre.source-code.line-number {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
pre.source-code ol {
|
||||
background: #eee;
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
pre.source-code li {
|
||||
background: white;
|
||||
padding-left: 4px;
|
||||
list-style: decimal;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
pre.source-code.line-number li.active {
|
||||
background: rgb(255, 255, 150);
|
||||
}
|
||||
|
||||
table.files-summary {
|
||||
width: 100%;
|
||||
margin: 10px 0;
|
||||
border-spacing: 0;
|
||||
border: 0;
|
||||
border-collapse: collapse;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.files-summary tbody tr:hover {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
table.files-summary td:first-child,
|
||||
table.files-summary td:nth-of-type(2) {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.files-summary[data-use-coverage="false"] td.coverage {
|
||||
display: none;
|
||||
}
|
||||
|
||||
table.files-summary thead {
|
||||
background: #999;
|
||||
color: white;
|
||||
}
|
||||
|
||||
table.files-summary td {
|
||||
border: solid 1px #ddd;
|
||||
padding: 4px 10px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
table.files-summary td.identifiers > span {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
}
|
||||
table.files-summary td.identifiers > span:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
table.files-summary .coverage-count {
|
||||
font-size: 12px;
|
||||
color: #aaa;
|
||||
display: inline-block;
|
||||
min-width: 40px;
|
||||
}
|
||||
|
||||
.total-coverage-count {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
font-weight: 500;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
table.test-summary thead {
|
||||
background: #999;
|
||||
color: white;
|
||||
}
|
||||
|
||||
table.test-summary thead .test-description {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
table.test-summary {
|
||||
width: 100%;
|
||||
margin: 10px 0;
|
||||
border-spacing: 0;
|
||||
border: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.test-summary thead .test-count {
|
||||
width: 3em;
|
||||
}
|
||||
|
||||
table.test-summary tbody tr:hover {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
table.test-summary td {
|
||||
border: solid 1px #ddd;
|
||||
padding: 4px 10px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
table.test-summary td p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
table.test-summary tr.test-describe .toggle {
|
||||
display: inline-block;
|
||||
float: left;
|
||||
margin-right: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
table.test-summary tr.test-describe .toggle.opened:before {
|
||||
content: '▼';
|
||||
}
|
||||
|
||||
table.test-summary tr.test-describe .toggle.closed:before {
|
||||
content: '▶';
|
||||
}
|
||||
|
||||
table.test-summary .test-target > span {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
}
|
||||
table.test-summary .test-target > span:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.inner-link-active {
|
||||
background: rgb(255, 255, 150);
|
||||
}
|
||||
|
||||
/* search box */
|
||||
.search-box {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 50px;
|
||||
padding-right: 8px;
|
||||
padding-bottom: 10px;
|
||||
line-height: normal;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.search-box img {
|
||||
width: 20px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
display: inline;
|
||||
visibility: hidden;
|
||||
width: 0;
|
||||
padding: 2px;
|
||||
height: 1.5em;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
border: 1px #0af;
|
||||
border-style: none none solid none;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.search-input-edge {
|
||||
display: none;
|
||||
width: 1px;
|
||||
height: 5px;
|
||||
background-color: #0af;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.search-result {
|
||||
position: absolute;
|
||||
display: none;
|
||||
height: 600px;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin-top: 5px;
|
||||
margin-left: 24px;
|
||||
background: white;
|
||||
box-shadow: 1px 1px 4px rgb(0,0,0);
|
||||
white-space: nowrap;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.search-result-import-path {
|
||||
color: #aaa;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.search-result li {
|
||||
list-style: none;
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
.search-result li a {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.search-result li.selected {
|
||||
background: #ddd;
|
||||
}
|
||||
|
||||
.search-result li.search-separator {
|
||||
background: rgb(37, 138, 175);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.search-box.active .search-input {
|
||||
visibility: visible;
|
||||
transition: width 0.2s ease-out;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.search-box.active .search-input-edge {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* coverage badge */
|
||||
.esdoc-coverage {
|
||||
display: inline-block;
|
||||
height: 20px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
h1 .esdoc-coverage {
|
||||
position: relative;
|
||||
top: -4px;
|
||||
}
|
||||
|
||||
.esdoc-coverage-wrap {
|
||||
color: white;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.esdoc-coverage-label {
|
||||
padding: 3px 4px 3px 6px;
|
||||
background: linear-gradient(to bottom, #5e5e5e 0%,#4c4c4c 100%);
|
||||
border-radius: 4px 0 0 4px;
|
||||
display: inline-block;
|
||||
height: 20px;
|
||||
box-sizing: border-box;
|
||||
line-height: 14px;
|
||||
}
|
||||
|
||||
.esdoc-coverage-ratio {
|
||||
padding: 3px 6px 3px 4px;
|
||||
border-radius: 0 4px 4px 0;
|
||||
display: inline-block;
|
||||
height: 20px;
|
||||
box-sizing: border-box;
|
||||
line-height: 14px;
|
||||
}
|
||||
|
||||
.esdoc-coverage-low {
|
||||
background: linear-gradient(to bottom, #db654f 0%,#c9533d 100%);
|
||||
}
|
||||
|
||||
.esdoc-coverage-middle {
|
||||
background: linear-gradient(to bottom, #dab226 0%,#c9a179 100%);
|
||||
}
|
||||
|
||||
.esdoc-coverage-high {
|
||||
background: linear-gradient(to bottom, #4fc921 0%,#3eb810 100%);
|
||||
}
|
16084
doc/dump.json
16084
doc/dump.json
File diff suppressed because one or more lines are too long
|
@ -1,109 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../">
|
||||
<title data-ice="title">src/array.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/array.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">/**
|
||||
* Array utilities
|
||||
*/
|
||||
|
||||
import Str from './string';
|
||||
|
||||
export default {
|
||||
has: function(arr, val, caseSensitive){
|
||||
let sCase = caseSensitive===undefined ? false : caseSensitive;
|
||||
for (var i=0; i<arr.length; i++){
|
||||
if(Str.matchCase(arr[i].toString(), sCase) == val){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
indexByValue: function(arr, val, caseSensitive){
|
||||
let sCase = caseSensitive===undefined ? false : caseSensitive;
|
||||
for (var i=0; i<arr.length; i++){
|
||||
if(Str.matchCase(arr[i].toString(), sCase) == val){
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
};
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,141 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../">
|
||||
<title data-ice="title">src/cookie.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/cookie.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">/**
|
||||
* Cookie utilities
|
||||
*/
|
||||
|
||||
export default {
|
||||
|
||||
write(name, value, hours){
|
||||
let expire = '';
|
||||
if(hours){
|
||||
expire = new Date((new Date()).getTime() + hours * 3600000);
|
||||
expire = '; expires=' + expire.toGMTString();
|
||||
}
|
||||
document.cookie = name + '=' + escape(value) + expire;
|
||||
},
|
||||
|
||||
read(name){
|
||||
let cookieValue = '',
|
||||
search = name + '=';
|
||||
if(document.cookie.length > 0){
|
||||
let cookie = document.cookie,
|
||||
offset = cookie.indexOf(search);
|
||||
if(offset !== -1){
|
||||
offset += search.length;
|
||||
let end = cookie.indexOf(';', offset);
|
||||
if(end === -1){
|
||||
end = cookie.length;
|
||||
}
|
||||
cookieValue = unescape(cookie.substring(offset, end));
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
},
|
||||
|
||||
remove(name){
|
||||
this.write(name, '', -1);
|
||||
},
|
||||
|
||||
valueToArray(name, separator){
|
||||
if(!separator){
|
||||
separator = ',';
|
||||
}
|
||||
//reads the cookie
|
||||
let val = this.read(name);
|
||||
//creates an array with filters' values
|
||||
let arr = val.split(separator);
|
||||
return arr;
|
||||
},
|
||||
|
||||
getValueByIndex(name, index, separator){
|
||||
if(!separator){
|
||||
separator = ',';
|
||||
}
|
||||
//reads the cookie
|
||||
let val = this.valueToArray(name, separator);
|
||||
return val[index];
|
||||
}
|
||||
|
||||
};
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,255 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../">
|
||||
<title data-ice="title">src/date.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/date.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">/**
|
||||
* Date utilities
|
||||
*/
|
||||
|
||||
export default {
|
||||
isValid(dateStr, format){
|
||||
if(!format) {
|
||||
format = 'DMY';
|
||||
}
|
||||
format = format.toUpperCase();
|
||||
if(format.length != 3) {
|
||||
if(format==='DDMMMYYYY'){
|
||||
let d = this.format(dateStr, format);
|
||||
dateStr = d.getDate() +'/'+ (d.getMonth()+1) +'/'+
|
||||
d.getFullYear();
|
||||
format = 'DMY';
|
||||
}
|
||||
}
|
||||
if((format.indexOf('M') === -1) || (format.indexOf('D') === -1) ||
|
||||
(format.indexOf('Y') === -1)){
|
||||
format = 'DMY';
|
||||
}
|
||||
let reg1, reg2;
|
||||
// If the year is first
|
||||
if(format.substring(0, 1) == 'Y') {
|
||||
reg1 = /^\d{2}(\-|\/|\.)\d{1,2}\1\d{1,2}$/;
|
||||
reg2 = /^\d{4}(\-|\/|\.)\d{1,2}\1\d{1,2}$/;
|
||||
} else if(format.substring(1, 2) == 'Y') { // If the year is second
|
||||
reg1 = /^\d{1,2}(\-|\/|\.)\d{2}\1\d{1,2}$/;
|
||||
reg2 = /^\d{1,2}(\-|\/|\.)\d{4}\1\d{1,2}$/;
|
||||
} else { // The year must be third
|
||||
reg1 = /^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{2}$/;
|
||||
reg2 = /^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/;
|
||||
}
|
||||
// If it doesn't conform to the right format (with either a 2 digit year
|
||||
// or 4 digit year), fail
|
||||
if(reg1.test(dateStr) === false && reg2.test(dateStr) === false) {
|
||||
return false;
|
||||
}
|
||||
// Split into 3 parts based on what the divider was
|
||||
let parts = dateStr.split(RegExp.$1);
|
||||
let mm, dd, yy;
|
||||
// Check to see if the 3 parts end up making a valid date
|
||||
if(format.substring(0, 1) === 'M'){
|
||||
mm = parts[0];
|
||||
} else if(format.substring(1, 2) === 'M'){
|
||||
mm = parts[1];
|
||||
} else {
|
||||
mm = parts[2];
|
||||
}
|
||||
if(format.substring(0, 1) === 'D'){
|
||||
dd = parts[0];
|
||||
} else if(format.substring(1, 2) === 'D'){
|
||||
dd = parts[1];
|
||||
} else {
|
||||
dd = parts[2];
|
||||
}
|
||||
if(format.substring(0, 1) === 'Y'){
|
||||
yy = parts[0];
|
||||
} else if(format.substring(1, 2) === 'Y'){
|
||||
yy = parts[1];
|
||||
} else {
|
||||
yy = parts[2];
|
||||
}
|
||||
if(parseInt(yy, 10) <= 50){
|
||||
yy = (parseInt(yy, 10) + 2000).toString();
|
||||
}
|
||||
if(parseInt(yy, 10) <= 99){
|
||||
yy = (parseInt(yy, 10) + 1900).toString();
|
||||
}
|
||||
let dt = new Date(
|
||||
parseInt(yy, 10), parseInt(mm, 10)-1, parseInt(dd, 10),
|
||||
0, 0, 0, 0);
|
||||
if(parseInt(dd, 10) != dt.getDate()){
|
||||
return false;
|
||||
}
|
||||
if(parseInt(mm, 10)-1 != dt.getMonth()){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
format(dateStr, formatStr) {
|
||||
if(!formatStr){
|
||||
formatStr = 'DMY';
|
||||
}
|
||||
if(!dateStr || dateStr === ''){
|
||||
return new Date(1001, 0, 1);
|
||||
}
|
||||
let oDate;
|
||||
let parts;
|
||||
|
||||
switch(formatStr.toUpperCase()){
|
||||
case 'DDMMMYYYY':
|
||||
parts = dateStr.replace(/[- \/.]/g,' ').split(' ');
|
||||
oDate = new Date(y2kDate(parts[2]),mmm2mm(parts[1])-1,parts[0]);
|
||||
break;
|
||||
case 'DMY':
|
||||
/* jshint ignore:start */
|
||||
parts = dateStr.replace(
|
||||
/^(0?[1-9]|[12][0-9]|3[01])([- \/.])(0?[1-9]|1[012])([- \/.])((\d\d)?\d\d)$/,'$1 $3 $5').split(' ');
|
||||
oDate = new Date(y2kDate(parts[2]),parts[1]-1,parts[0]);
|
||||
/* jshint ignore:end */
|
||||
break;
|
||||
case 'MDY':
|
||||
/* jshint ignore:start */
|
||||
parts = dateStr.replace(
|
||||
/^(0?[1-9]|1[012])([- \/.])(0?[1-9]|[12][0-9]|3[01])([- \/.])((\d\d)?\d\d)$/,'$1 $3 $5').split(' ');
|
||||
oDate = new Date(y2kDate(parts[2]),parts[0]-1,parts[1]);
|
||||
/* jshint ignore:end */
|
||||
break;
|
||||
case 'YMD':
|
||||
/* jshint ignore:start */
|
||||
parts = dateStr.replace(/^((\d\d)?\d\d)([- \/.])(0?[1-9]|1[012])([- \/.])(0?[1-9]|[12][0-9]|3[01])$/,'$1 $4 $6').split(' ');
|
||||
oDate = new Date(y2kDate(parts[0]),parts[1]-1,parts[2]);
|
||||
/* jshint ignore:end */
|
||||
break;
|
||||
default: //in case format is not correct
|
||||
/* jshint ignore:start */
|
||||
parts = dateStr.replace(/^(0?[1-9]|[12][0-9]|3[01])([- \/.])(0?[1-9]|1[012])([- \/.])((\d\d)?\d\d)$/,'$1 $3 $5').split(' ');
|
||||
oDate = new Date(y2kDate(parts[2]),parts[1]-1,parts[0]);
|
||||
/* jshint ignore:end */
|
||||
break;
|
||||
}
|
||||
return oDate;
|
||||
}
|
||||
};
|
||||
|
||||
function y2kDate(yr){
|
||||
if(yr === undefined){
|
||||
return 0;
|
||||
}
|
||||
if(yr.length>2){
|
||||
return yr;
|
||||
}
|
||||
let y;
|
||||
//>50 belong to 1900
|
||||
if(yr <= 99 && yr>50){
|
||||
y = '19' + yr;
|
||||
}
|
||||
//<50 belong to 2000
|
||||
if(yr<50 || yr === '00'){
|
||||
y = '20' + yr;
|
||||
}
|
||||
return y;
|
||||
}
|
||||
|
||||
function mmm2mm(mmm){
|
||||
if(mmm === undefined){
|
||||
return 0;
|
||||
}
|
||||
let mondigit;
|
||||
let MONTH_NAMES = [
|
||||
'january','february','march','april','may','june','july',
|
||||
'august','september','october','november','december',
|
||||
'jan','feb','mar','apr','may','jun','jul','aug','sep','oct',
|
||||
'nov','dec'
|
||||
];
|
||||
for(let m_i=0; m_i < MONTH_NAMES.length; m_i++){
|
||||
let month_name = MONTH_NAMES[m_i];
|
||||
if (mmm.toLowerCase() === month_name){
|
||||
mondigit = m_i+1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(mondigit > 11 || mondigit < 23){
|
||||
mondigit = mondigit - 12;
|
||||
}
|
||||
if(mondigit < 1 || mondigit > 12){
|
||||
return 0;
|
||||
}
|
||||
return mondigit;
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,225 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../">
|
||||
<title data-ice="title">src/dom.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/dom.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">/**
|
||||
* DOM utilities
|
||||
*/
|
||||
|
||||
export default {
|
||||
|
||||
/**
|
||||
* Returns text + text of children of given node
|
||||
* @param {NodeElement} node
|
||||
* @return {String}
|
||||
*/
|
||||
getText(node){
|
||||
let s = node.textContent || node.innerText ||
|
||||
node.innerHTML.replace(/<[^<>]+>/g, '');
|
||||
s = s.replace(/^\s+/, '').replace(/\s+$/, '');
|
||||
return s;
|
||||
},
|
||||
|
||||
/**
|
||||
* Creates an html element with given collection of attributes
|
||||
* @param {String} tag a string of the html tag to create
|
||||
* @param {Array} an undetermined number of arrays containing the with 2
|
||||
* items, the attribute name and its value ['id','myId']
|
||||
* @return {Object} created element
|
||||
*/
|
||||
create(tag){
|
||||
if(!tag || tag===''){
|
||||
return;
|
||||
}
|
||||
|
||||
let el = document.createElement(tag),
|
||||
args = arguments;
|
||||
|
||||
if(args.length > 1){
|
||||
for(let i=0; i<args.length; i++){
|
||||
let argtype = typeof args[i];
|
||||
if(argtype.toLowerCase() === 'object' && args[i].length === 2){
|
||||
el.setAttribute(args[i][0], args[i][1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return el;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns a text node with given text
|
||||
* @param {String} txt
|
||||
* @return {Object}
|
||||
*/
|
||||
text(txt){
|
||||
return document.createTextNode(txt);
|
||||
},
|
||||
|
||||
hasClass(ele, cls){
|
||||
if(!ele){ return false; }
|
||||
|
||||
if(supportsClassList()){
|
||||
return ele.classList.contains(cls);
|
||||
}
|
||||
return ele.className.match(new RegExp('(\\s|^)'+ cls +'(\\s|$)'));
|
||||
},
|
||||
|
||||
addClass(ele, cls){
|
||||
if(!ele){ return; }
|
||||
|
||||
if(supportsClassList()){
|
||||
ele.classList.add(cls);
|
||||
return;
|
||||
}
|
||||
|
||||
if(ele.className === ''){
|
||||
ele.className = cls;
|
||||
}
|
||||
else if(!this.hasClass(ele, cls)){
|
||||
ele.className += ' ' + cls;
|
||||
}
|
||||
},
|
||||
|
||||
removeClass(ele, cls){
|
||||
if(!ele){ return; }
|
||||
|
||||
if(supportsClassList()){
|
||||
ele.classList.remove(cls);
|
||||
return;
|
||||
}
|
||||
let reg = new RegExp('(\\s|^)'+ cls +'(\\s|$)', 'g');
|
||||
ele.className = ele.className.replace(reg, '');
|
||||
},
|
||||
|
||||
/**
|
||||
* Creates and returns an option element
|
||||
* @param {String} text option text
|
||||
* @param {String} value option value
|
||||
* @param {Boolean} isSel whether option is selected
|
||||
* @return {Object} option element
|
||||
*/
|
||||
createOpt(text, value, isSel){
|
||||
let isSelected = isSel ? true : false,
|
||||
opt = isSelected ?
|
||||
this.create('option', ['value',value], ['selected','true']) :
|
||||
this.create('option', ['value',value]);
|
||||
opt.appendChild(this.text(text));
|
||||
return opt;
|
||||
},
|
||||
|
||||
/**
|
||||
* Creates and returns a checklist item
|
||||
* @param {Number} chkIndex index of check item
|
||||
* @param {String} chkValue check item value
|
||||
* @param {String} labelText check item label text
|
||||
* @return {Object} li DOM element
|
||||
*/
|
||||
createCheckItem(chkIndex, chkValue, labelText){
|
||||
let li = this.create('li'),
|
||||
label = this.create('label', ['for', chkIndex]),
|
||||
check = this.create('input',
|
||||
['id', chkIndex],
|
||||
['name', chkIndex],
|
||||
['type', 'checkbox'],
|
||||
['value', chkValue]
|
||||
);
|
||||
label.appendChild(check);
|
||||
label.appendChild(this.text(labelText));
|
||||
li.appendChild(label);
|
||||
li.label = label;
|
||||
li.check = check;
|
||||
return li;
|
||||
},
|
||||
|
||||
id(_id){
|
||||
return document.getElementById(_id);
|
||||
},
|
||||
|
||||
tag(o, tagname){
|
||||
return o.getElementsByTagName(tagname);
|
||||
}
|
||||
};
|
||||
|
||||
// HTML5 classList API
|
||||
function supportsClassList(){
|
||||
return document.documentElement.classList;
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,136 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../">
|
||||
<title data-ice="title">src/event.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/event.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">/**
|
||||
* DOM event utilities
|
||||
*/
|
||||
|
||||
export default {
|
||||
add(obj, type, func, capture){
|
||||
if(obj.addEventListener){
|
||||
obj.addEventListener(type, func, capture);
|
||||
}
|
||||
else if(obj.attachEvent){
|
||||
obj.attachEvent('on'+type, func);
|
||||
} else {
|
||||
obj['on'+type] = func;
|
||||
}
|
||||
},
|
||||
remove(obj, type, func, capture){
|
||||
if(obj.detachEvent){
|
||||
obj.detachEvent('on'+type,func);
|
||||
}
|
||||
else if(obj.removeEventListener){
|
||||
obj.removeEventListener(type, func, capture);
|
||||
} else {
|
||||
obj['on'+type] = null;
|
||||
}
|
||||
},
|
||||
stop(evt){
|
||||
if(!evt){
|
||||
evt = window.event;
|
||||
}
|
||||
if(evt.stopPropagation){
|
||||
evt.stopPropagation();
|
||||
} else {
|
||||
evt.cancelBubble = true;
|
||||
}
|
||||
},
|
||||
cancel(evt){
|
||||
if(!evt){
|
||||
evt = window.event;
|
||||
}
|
||||
if(evt.preventDefault) {
|
||||
evt.preventDefault();
|
||||
} else {
|
||||
evt.returnValue = false;
|
||||
}
|
||||
},
|
||||
target(evt){
|
||||
return (evt && evt.target) || (window.event && window.event.srcElement);
|
||||
},
|
||||
keyCode(evt){
|
||||
return evt.charCode ? evt.charCode :
|
||||
(evt.keyCode ? evt.keyCode: (evt.which ? evt.which : 0));
|
||||
}
|
||||
};
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,458 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../../">
|
||||
<title data-ice="title">src/extensions/advancedGrid/adapterEzEditTable.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/extensions/advancedGrid/adapterEzEditTable.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../../dom';
|
||||
import Arr from '../../array';
|
||||
|
||||
export default class AdapterEzEditTable {
|
||||
/**
|
||||
* Adapter module for ezEditTable, an external library providing advanced
|
||||
* grid features (selection and edition):
|
||||
* http://codecanyon.net/item/ezedittable-enhance-html-tables/2425123?ref=koalyptus
|
||||
*
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf, cfg){
|
||||
// ezEditTable config
|
||||
this.initialized = false;
|
||||
this.desc = cfg.description || 'ezEditTable adapter';
|
||||
this.filename = cfg.filename || 'ezEditTable.js';
|
||||
this.vendorPath = cfg.vendor_path;
|
||||
this.loadStylesheet = Boolean(cfg.load_stylesheet);
|
||||
this.stylesheet = cfg.stylesheet || this.vendorPath + 'ezEditTable.css';
|
||||
this.stylesheetName = cfg.stylesheet_name || 'ezEditTableCss';
|
||||
this.err = 'Failed to instantiate EditTable object.\n"ezEditTable" ' +
|
||||
'dependency not found.';
|
||||
|
||||
this._ezEditTable = null;
|
||||
this.cfg = cfg;
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Conditionally load ezEditTable library and set advanced grid
|
||||
* @return {[type]} [description]
|
||||
*/
|
||||
init(){
|
||||
var tf = this.tf;
|
||||
if(window.EditTable){
|
||||
this._setAdvancedGrid();
|
||||
} else {
|
||||
var path = this.vendorPath + this.filename;
|
||||
tf.import(this.filename, path, ()=> { this._setAdvancedGrid(); });
|
||||
}
|
||||
if(this.loadStylesheet && !tf.isImported(this.stylesheet, 'link')){
|
||||
tf.import(this.stylesheetName, this.stylesheet, null, 'link');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiate ezEditTable component for advanced grid features
|
||||
*/
|
||||
_setAdvancedGrid(){
|
||||
var tf = this.tf;
|
||||
|
||||
//start row for EditTable constructor needs to be calculated
|
||||
var startRow,
|
||||
cfg = this.cfg,
|
||||
thead = Dom.tag(tf.tbl, 'thead');
|
||||
|
||||
//if thead exists and startRow not specified, startRow is calculated
|
||||
//automatically by EditTable
|
||||
if(thead.length > 0 && !cfg.startRow){
|
||||
startRow = undefined;
|
||||
}
|
||||
//otherwise startRow config property if any or TableFilter refRow
|
||||
else{
|
||||
startRow = cfg.startRow || tf.refRow;
|
||||
}
|
||||
|
||||
cfg.base_path = cfg.base_path || tf.basePath + 'ezEditTable/';
|
||||
var editable = cfg.editable;
|
||||
var selectable = cfg.selection;
|
||||
|
||||
if(selectable){
|
||||
cfg.default_selection = cfg.default_selection || 'row';
|
||||
}
|
||||
//CSS Styles
|
||||
cfg.active_cell_css = cfg.active_cell_css || 'ezETSelectedCell';
|
||||
|
||||
var _lastValidRowIndex = 0;
|
||||
var _lastRowIndex = 0;
|
||||
|
||||
if(selectable){
|
||||
//Row navigation needs to be calculated according to TableFilter's
|
||||
//validRowsIndex array
|
||||
var onAfterSelection = function(et, selectedElm, e){
|
||||
var slc = et.Selection;
|
||||
//Next valid filtered row needs to be selected
|
||||
var doSelect = function(nextRowIndex){
|
||||
if(et.defaultSelection === 'row'){
|
||||
slc.SelectRowByIndex(nextRowIndex);
|
||||
} else {
|
||||
et.ClearSelections();
|
||||
var cellIndex = selectedElm.cellIndex,
|
||||
row = tf.tbl.rows[nextRowIndex];
|
||||
if(et.defaultSelection === 'both'){
|
||||
slc.SelectRowByIndex(nextRowIndex);
|
||||
}
|
||||
if(row){
|
||||
slc.SelectCell(row.cells[cellIndex]);
|
||||
}
|
||||
}
|
||||
//Table is filtered
|
||||
if(tf.validRowsIndex.length !== tf.getRowsNb()){
|
||||
var r = tf.tbl.rows[nextRowIndex];
|
||||
if(r){
|
||||
r.scrollIntoView(false);
|
||||
}
|
||||
if(cell){
|
||||
if(cell.cellIndex === (tf.getCellsNb()-1) &&
|
||||
tf.gridLayout){
|
||||
tf.tblCont.scrollLeft = 100000000;
|
||||
}
|
||||
else if(cell.cellIndex===0 && tf.gridLayout){
|
||||
tf.tblCont.scrollLeft = 0;
|
||||
} else {
|
||||
cell.scrollIntoView(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//table is not filtered
|
||||
if(!tf.validRowsIndex){
|
||||
return;
|
||||
}
|
||||
var validIndexes = tf.validRowsIndex,
|
||||
validIdxLen = validIndexes.length,
|
||||
row = et.defaultSelection !== 'row' ?
|
||||
selectedElm.parentNode : selectedElm,
|
||||
//cell for default_selection = 'both' or 'cell'
|
||||
cell = selectedElm.nodeName==='TD' ? selectedElm : null,
|
||||
keyCode = e !== undefined ? et.Event.GetKey(e) : 0,
|
||||
isRowValid = Arr.has(validIndexes, row.rowIndex),
|
||||
nextRowIndex,
|
||||
//pgup/pgdown keys
|
||||
d = (keyCode === 34 || keyCode === 33 ?
|
||||
(tf.feature('paging').pagingLength ||
|
||||
et.nbRowsPerPage) : 1);
|
||||
|
||||
//If next row is not valid, next valid filtered row needs to be
|
||||
//calculated
|
||||
if(!isRowValid){
|
||||
//Selection direction up/down
|
||||
if(row.rowIndex>_lastRowIndex){
|
||||
//last row
|
||||
if(row.rowIndex >= validIndexes[validIdxLen-1]){
|
||||
nextRowIndex = validIndexes[validIdxLen-1];
|
||||
} else {
|
||||
var calcRowIndex = (_lastValidRowIndex + d);
|
||||
if(calcRowIndex > (validIdxLen-1)){
|
||||
nextRowIndex = validIndexes[validIdxLen-1];
|
||||
} else {
|
||||
nextRowIndex = validIndexes[calcRowIndex];
|
||||
}
|
||||
}
|
||||
} else{
|
||||
//first row
|
||||
if(row.rowIndex <= validIndexes[0]){
|
||||
nextRowIndex = validIndexes[0];
|
||||
} else {
|
||||
var v = validIndexes[_lastValidRowIndex - d];
|
||||
nextRowIndex = v ? v : validIndexes[0];
|
||||
}
|
||||
}
|
||||
_lastRowIndex = row.rowIndex;
|
||||
doSelect(nextRowIndex);
|
||||
} else {
|
||||
//If filtered row is valid, special calculation for
|
||||
//pgup/pgdown keys
|
||||
if(keyCode!==34 && keyCode!==33){
|
||||
_lastValidRowIndex = Arr.indexByValue(validIndexes,
|
||||
row.rowIndex);
|
||||
_lastRowIndex = row.rowIndex;
|
||||
} else {
|
||||
if(keyCode === 34){ //pgdown
|
||||
//last row
|
||||
if((_lastValidRowIndex + d) <= (validIdxLen-1)){
|
||||
nextRowIndex = validIndexes[
|
||||
_lastValidRowIndex + d];
|
||||
} else {
|
||||
nextRowIndex = [validIdxLen-1];
|
||||
}
|
||||
} else { //pgup
|
||||
//first row
|
||||
if((_lastValidRowIndex - d) <= validIndexes[0]){
|
||||
nextRowIndex = validIndexes[0];
|
||||
} else {
|
||||
nextRowIndex = validIndexes[
|
||||
_lastValidRowIndex - d];
|
||||
}
|
||||
}
|
||||
_lastRowIndex = nextRowIndex;
|
||||
_lastValidRowIndex = Arr.indexByValue(validIndexes,
|
||||
nextRowIndex);
|
||||
doSelect(nextRowIndex);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//Page navigation has to be enforced whenever selected row is out of
|
||||
//the current page range
|
||||
var onBeforeSelection = function(et, selectedElm){
|
||||
var row = et.defaultSelection !== 'row' ?
|
||||
selectedElm.parentNode : selectedElm;
|
||||
if(tf.paging){
|
||||
if(tf.feature('paging').nbPages > 1){
|
||||
var paging = tf.feature('paging');
|
||||
//page length is re-assigned in case it has changed
|
||||
et.nbRowsPerPage = paging.pagingLength;
|
||||
var validIndexes = tf.validRowsIndex,
|
||||
validIdxLen = validIndexes.length,
|
||||
pagingEndRow = parseInt(paging.startPagingRow, 10) +
|
||||
parseInt(paging.pagingLength, 10);
|
||||
var rowIndex = row.rowIndex;
|
||||
|
||||
if((rowIndex === validIndexes[validIdxLen-1]) &&
|
||||
paging.currentPageNb!==paging.nbPages){
|
||||
paging.setPage('last');
|
||||
}
|
||||
else if((rowIndex == validIndexes[0]) &&
|
||||
paging.currentPageNb!==1){
|
||||
paging.setPage('first');
|
||||
}
|
||||
else if(rowIndex > validIndexes[pagingEndRow-1] &&
|
||||
rowIndex < validIndexes[validIdxLen-1]){
|
||||
paging.setPage('next');
|
||||
}
|
||||
else if(
|
||||
rowIndex < validIndexes[paging.startPagingRow] &&
|
||||
rowIndex > validIndexes[0]){
|
||||
paging.setPage('previous');
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//Selected row needs to be visible when paging is activated
|
||||
if(tf.paging){
|
||||
tf.feature('paging').onAfterChangePage = function(paging){
|
||||
var advGrid = paging.tf.extension('advancedGrid');
|
||||
var et = advGrid._ezEditTable;
|
||||
var slc = et.Selection;
|
||||
var row = slc.GetActiveRow();
|
||||
if(row){
|
||||
row.scrollIntoView(false);
|
||||
}
|
||||
var cell = slc.GetActiveCell();
|
||||
if(cell){
|
||||
cell.scrollIntoView(false);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//Rows navigation when rows are filtered is performed with the
|
||||
//EditTable row selection callback events
|
||||
if(cfg.default_selection==='row'){
|
||||
var fnB = cfg.on_before_selected_row;
|
||||
cfg.on_before_selected_row = function(){
|
||||
onBeforeSelection(arguments[0], arguments[1], arguments[2]);
|
||||
if(fnB){
|
||||
fnB.call(
|
||||
null, arguments[0], arguments[1], arguments[2]);
|
||||
}
|
||||
};
|
||||
var fnA = cfg.on_after_selected_row;
|
||||
cfg.on_after_selected_row = function(){
|
||||
onAfterSelection(arguments[0], arguments[1], arguments[2]);
|
||||
if(fnA){
|
||||
fnA.call(
|
||||
null, arguments[0], arguments[1], arguments[2]);
|
||||
}
|
||||
};
|
||||
} else {
|
||||
var fnD = cfg.on_before_selected_cell;
|
||||
cfg.on_before_selected_cell = function(){
|
||||
onBeforeSelection(arguments[0], arguments[1], arguments[2]);
|
||||
if(fnD){
|
||||
fnD.call(
|
||||
null, arguments[0], arguments[1], arguments[2]);
|
||||
}
|
||||
};
|
||||
var fnC = cfg.on_after_selected_cell;
|
||||
cfg.on_after_selected_cell = function(){
|
||||
onAfterSelection(arguments[0], arguments[1], arguments[2]);
|
||||
if(fnC){
|
||||
fnC.call(
|
||||
null, arguments[0], arguments[1], arguments[2]);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
if(editable){
|
||||
//Added or removed rows, TF rows number needs to be re-calculated
|
||||
var fnE = cfg.on_added_dom_row;
|
||||
cfg.on_added_dom_row = function(){
|
||||
tf.nbFilterableRows++;
|
||||
if(!tf.paging){
|
||||
tf.feature('rowsCounter').refresh();
|
||||
} else {
|
||||
tf.nbRows++;
|
||||
tf.nbVisibleRows++;
|
||||
tf.nbFilterableRows++;
|
||||
tf.paging=false;
|
||||
tf.feature('paging').destroy();
|
||||
tf.feature('paging').reset();
|
||||
}
|
||||
if(tf.alternateBgs){
|
||||
tf.feature('alternateRows').init();
|
||||
}
|
||||
if(fnE){
|
||||
fnE.call(null, arguments[0], arguments[1], arguments[2]);
|
||||
}
|
||||
};
|
||||
if(cfg.actions && cfg.actions['delete']){
|
||||
var fnF = cfg.actions['delete'].on_after_submit;
|
||||
cfg.actions['delete'].on_after_submit = function(){
|
||||
tf.nbFilterableRows--;
|
||||
if(!tf.paging){
|
||||
tf.feature('rowsCounter').refresh();
|
||||
} else {
|
||||
tf.nbRows--;
|
||||
tf.nbVisibleRows--;
|
||||
tf.nbFilterableRows--;
|
||||
tf.paging=false;
|
||||
tf.feature('paging').destroy();
|
||||
tf.feature('paging').reset(false);
|
||||
}
|
||||
if(tf.alternateBgs){
|
||||
tf.feature('alternateRows').init();
|
||||
}
|
||||
if(fnF){
|
||||
fnF.call(null, arguments[0], arguments[1]);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
try{
|
||||
this._ezEditTable = new EditTable(tf.id, cfg, startRow);
|
||||
this._ezEditTable.Init();
|
||||
} catch(e) { throw new Error(this.err); }
|
||||
|
||||
this.initialized = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset advanced grid when previously removed
|
||||
*/
|
||||
reset(){
|
||||
var ezEditTable = this._ezEditTable;
|
||||
if(ezEditTable){
|
||||
if(this.cfg.selection){
|
||||
ezEditTable.Selection.Set();
|
||||
}
|
||||
if(this.cfg.editable){
|
||||
ezEditTable.Editable.Set();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove advanced grid
|
||||
*/
|
||||
destroy(){
|
||||
var ezEditTable = this._ezEditTable;
|
||||
if(ezEditTable){
|
||||
if(this.cfg.selection){
|
||||
ezEditTable.Selection.ClearSelections();
|
||||
ezEditTable.Selection.Remove();
|
||||
}
|
||||
if(this.cfg.editable){
|
||||
ezEditTable.Editable.Remove();
|
||||
}
|
||||
}
|
||||
this.initialized = false;
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,85 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../../">
|
||||
<title data-ice="title">src/extensions/advancedGrid/advancedGrid.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/extensions/advancedGrid/advancedGrid.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import AdapterEzEditTable from './adapterEzEditTable';
|
||||
|
||||
export default AdapterEzEditTable;</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,398 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../../">
|
||||
<title data-ice="title">src/extensions/colOps/colOps.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/extensions/colOps/colOps.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../../dom';
|
||||
import Str from '../../string';
|
||||
import Types from '../../types';
|
||||
|
||||
export default class ColOps{
|
||||
|
||||
/**
|
||||
* Column calculations
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf, opts) {
|
||||
|
||||
//calls function before col operation
|
||||
this.onBeforeOperation = Types.isFn(opts.on_before_operation) ?
|
||||
opts.on_before_operation : null;
|
||||
//calls function after col operation
|
||||
this.onAfterOperation = Types.isFn(opts.on_after_operation) ?
|
||||
opts.on_after_operation : null;
|
||||
|
||||
this.opts = opts;
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
init(){
|
||||
this.calc();
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates columns' values
|
||||
* Configuration options are stored in 'opts' property
|
||||
* - 'id' contains ids of elements showing result (array)
|
||||
* - 'col' contains the columns' indexes (array)
|
||||
* - 'operation' contains operation type (array, values: 'sum', 'mean',
|
||||
* 'min', 'max', 'median', 'q1', 'q3')
|
||||
* - 'write_method' array defines which method to use for displaying the
|
||||
* result (innerHTML, setValue, createTextNode) - default: 'innerHTML'
|
||||
* - 'tot_row_index' defines in which row results are displayed
|
||||
* (integers array)
|
||||
*
|
||||
* - changes made by Nuovella:
|
||||
* (1) optimized the routine (now it will only process each column once),
|
||||
* (2) added calculations for the median, lower and upper quartile.
|
||||
*/
|
||||
calc() {
|
||||
var tf = this.tf;
|
||||
if(!tf.isFirstLoad && !tf.hasGrid()){
|
||||
return;
|
||||
}
|
||||
|
||||
if(this.onBeforeOperation){
|
||||
this.onBeforeOperation.call(null, tf);
|
||||
}
|
||||
|
||||
var opts = this.opts,
|
||||
labelId = opts.id,
|
||||
colIndex = opts.col,
|
||||
operation = opts.operation,
|
||||
outputType = opts.write_method,
|
||||
totRowIndex = opts.tot_row_index,
|
||||
excludeRow = opts.exclude_row,
|
||||
decimalPrecision = Types.isUndef(opts.decimal_precision) ?
|
||||
2 : opts.decimal_precision;
|
||||
|
||||
//nuovella: determine unique list of columns to operate on
|
||||
var ucolIndex = [],
|
||||
ucolMax = 0;
|
||||
ucolIndex[ucolMax] = colIndex[0];
|
||||
|
||||
for(var ii=1; ii<colIndex.length; ii++){
|
||||
var saved = 0;
|
||||
//see if colIndex[ii] is already in the list of unique indexes
|
||||
for(var jj=0; jj<=ucolMax; jj++){
|
||||
if(ucolIndex[jj] === colIndex[ii]){
|
||||
saved = 1;
|
||||
}
|
||||
}
|
||||
//if not saved then, save the index;
|
||||
if (saved === 0){
|
||||
ucolMax++;
|
||||
ucolIndex[ucolMax] = colIndex[ii];
|
||||
}
|
||||
}
|
||||
|
||||
if(Str.lower(typeof labelId)=='object' &&
|
||||
Str.lower(typeof colIndex)=='object' &&
|
||||
Str.lower(typeof operation)=='object'){
|
||||
var rows = tf.tbl.rows,
|
||||
colvalues = [];
|
||||
|
||||
for(var ucol=0; ucol<=ucolMax; ucol++){
|
||||
//this retrieves col values
|
||||
//use ucolIndex because we only want to pass through this loop
|
||||
//once for each column get the values in this unique column
|
||||
colvalues.push(
|
||||
tf.getColValues(ucolIndex[ucol], true, excludeRow));
|
||||
|
||||
//next: calculate all operations for this column
|
||||
var result,
|
||||
nbvalues=0,
|
||||
temp,
|
||||
meanValue=0,
|
||||
sumValue=0,
|
||||
minValue=null,
|
||||
maxValue=null,
|
||||
q1Value=null,
|
||||
medValue=null,
|
||||
q3Value=null,
|
||||
meanFlag=0,
|
||||
sumFlag=0,
|
||||
minFlag=0,
|
||||
maxFlag=0,
|
||||
q1Flag=0,
|
||||
medFlag=0,
|
||||
q3Flag=0,
|
||||
theList=[],
|
||||
opsThisCol=[],
|
||||
decThisCol=[],
|
||||
labThisCol=[],
|
||||
oTypeThisCol=[],
|
||||
mThisCol=-1;
|
||||
|
||||
for(var k=0; k<colIndex.length; k++){
|
||||
if(colIndex[k] === ucolIndex[ucol]){
|
||||
mThisCol++;
|
||||
opsThisCol[mThisCol]=Str.lower(operation[k]);
|
||||
decThisCol[mThisCol]=decimalPrecision[k];
|
||||
labThisCol[mThisCol]=labelId[k];
|
||||
oTypeThisCol = outputType !== undefined &&
|
||||
Str.lower(typeof outputType)==='object' ?
|
||||
outputType[k] : null;
|
||||
|
||||
switch(opsThisCol[mThisCol]){
|
||||
case 'mean':
|
||||
meanFlag=1;
|
||||
break;
|
||||
case 'sum':
|
||||
sumFlag=1;
|
||||
break;
|
||||
case 'min':
|
||||
minFlag=1;
|
||||
break;
|
||||
case 'max':
|
||||
maxFlag=1;
|
||||
break;
|
||||
case 'median':
|
||||
medFlag=1;
|
||||
break;
|
||||
case 'q1':
|
||||
q1Flag=1;
|
||||
break;
|
||||
case 'q3':
|
||||
q3Flag=1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for(var j=0; j<colvalues[ucol].length; j++){
|
||||
//sort the list for calculation of median and quartiles
|
||||
if((q1Flag==1)|| (q3Flag==1) || (medFlag==1)){
|
||||
if (j<colvalues[ucol].length -1){
|
||||
for(k=j+1; k<colvalues[ucol].length; k++) {
|
||||
if(eval(colvalues[ucol][k]) <
|
||||
eval(colvalues[ucol][j])){
|
||||
temp = colvalues[ucol][j];
|
||||
colvalues[ucol][j] = colvalues[ucol][k];
|
||||
colvalues[ucol][k] = temp;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var cvalue = parseFloat(colvalues[ucol][j]);
|
||||
theList[j] = parseFloat(cvalue);
|
||||
|
||||
if(!isNaN(cvalue)){
|
||||
nbvalues++;
|
||||
if(sumFlag===1 || meanFlag===1){
|
||||
sumValue += parseFloat( cvalue );
|
||||
}
|
||||
if(minFlag===1){
|
||||
if(minValue===null){
|
||||
minValue = parseFloat( cvalue );
|
||||
} else{
|
||||
minValue = parseFloat( cvalue ) < minValue ?
|
||||
parseFloat( cvalue ): minValue;
|
||||
}
|
||||
}
|
||||
if(maxFlag===1){
|
||||
if (maxValue===null){
|
||||
maxValue = parseFloat( cvalue );
|
||||
} else {
|
||||
maxValue = parseFloat( cvalue ) > maxValue ?
|
||||
parseFloat( cvalue ): maxValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}//for j
|
||||
if(meanFlag===1){
|
||||
meanValue = sumValue/nbvalues;
|
||||
}
|
||||
if(medFlag===1){
|
||||
var aux = 0;
|
||||
if(nbvalues%2 === 1){
|
||||
aux = Math.floor(nbvalues/2);
|
||||
medValue = theList[aux];
|
||||
} else{
|
||||
medValue =
|
||||
(theList[nbvalues/2] + theList[((nbvalues/2)-1)])/2;
|
||||
}
|
||||
}
|
||||
var posa;
|
||||
if(q1Flag===1){
|
||||
posa=0.0;
|
||||
posa = Math.floor(nbvalues/4);
|
||||
if(4*posa == nbvalues){
|
||||
q1Value = (theList[posa-1] + theList[posa])/2;
|
||||
} else {
|
||||
q1Value = theList[posa];
|
||||
}
|
||||
}
|
||||
if (q3Flag===1){
|
||||
posa=0.0;
|
||||
var posb=0.0;
|
||||
posa = Math.floor(nbvalues/4);
|
||||
if (4*posa === nbvalues){
|
||||
posb = 3*posa;
|
||||
q3Value = (theList[posb] + theList[posb-1])/2;
|
||||
} else {
|
||||
q3Value = theList[nbvalues-posa-1];
|
||||
}
|
||||
}
|
||||
|
||||
for(var i=0; i<=mThisCol; i++){
|
||||
switch( opsThisCol[i] ){
|
||||
case 'mean':
|
||||
result=meanValue;
|
||||
break;
|
||||
case 'sum':
|
||||
result=sumValue;
|
||||
break;
|
||||
case 'min':
|
||||
result=minValue;
|
||||
break;
|
||||
case 'max':
|
||||
result=maxValue;
|
||||
break;
|
||||
case 'median':
|
||||
result=medValue;
|
||||
break;
|
||||
case 'q1':
|
||||
result=q1Value;
|
||||
break;
|
||||
case 'q3':
|
||||
result=q3Value;
|
||||
break;
|
||||
}
|
||||
|
||||
var precision = !isNaN(decThisCol[i]) ? decThisCol[i] : 2;
|
||||
|
||||
//if outputType is defined
|
||||
if(oTypeThisCol && result){
|
||||
result = result.toFixed( precision );
|
||||
|
||||
if(Dom.id(labThisCol[i])){
|
||||
switch( Str.lower(oTypeThisCol) ){
|
||||
case 'innerhtml':
|
||||
if (isNaN(result) || !isFinite(result) ||
|
||||
nbvalues===0){
|
||||
Dom.id(labThisCol[i]).innerHTML = '.';
|
||||
} else{
|
||||
Dom.id(labThisCol[i]).innerHTML= result;
|
||||
}
|
||||
break;
|
||||
case 'setvalue':
|
||||
Dom.id( labThisCol[i] ).value = result;
|
||||
break;
|
||||
case 'createtextnode':
|
||||
var oldnode = Dom.id(labThisCol[i])
|
||||
.firstChild;
|
||||
var txtnode = Dom.text(result);
|
||||
Dom.id(labThisCol[i])
|
||||
.replaceChild(txtnode, oldnode);
|
||||
break;
|
||||
}//switch
|
||||
}
|
||||
} else {
|
||||
try{
|
||||
if(isNaN(result) || !isFinite(result) ||
|
||||
nbvalues===0){
|
||||
Dom.id(labThisCol[i]).innerHTML = '.';
|
||||
} else {
|
||||
Dom.id(labThisCol[i]).innerHTML =
|
||||
result.toFixed(precision);
|
||||
}
|
||||
} catch(e) {}//catch
|
||||
}//else
|
||||
}//for i
|
||||
|
||||
// row(s) with result are always visible
|
||||
var totRow = totRowIndex && totRowIndex[ucol] ?
|
||||
rows[totRowIndex[ucol]] : null;
|
||||
if(totRow){
|
||||
totRow.style.display = '';
|
||||
}
|
||||
}//for ucol
|
||||
}//if typeof
|
||||
|
||||
if(this.onAfterOperation){
|
||||
this.onAfterOperation.call(null, tf);
|
||||
}
|
||||
}
|
||||
|
||||
destroy(){}
|
||||
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,604 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../../">
|
||||
<title data-ice="title">src/extensions/colsVisibility/colsVisibility.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/extensions/colsVisibility/colsVisibility.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../../dom';
|
||||
import Types from '../../types';
|
||||
import Event from '../../event';
|
||||
import Arr from '../../array';
|
||||
|
||||
export default class ColsVisibility{
|
||||
|
||||
/**
|
||||
* Columns Visibility extension
|
||||
* @param {Object} tf TableFilter instance
|
||||
* @param {Object} f Config
|
||||
*/
|
||||
constructor(tf, f){
|
||||
|
||||
// Configuration object
|
||||
var cfg = tf.config();
|
||||
|
||||
this.initialized = false;
|
||||
this.name = f.name;
|
||||
this.desc = f.description || 'Columns visibility manager';
|
||||
|
||||
//show/hide cols span element
|
||||
this.spanEl = null;
|
||||
//show/hide cols button element
|
||||
this.btnEl = null;
|
||||
//show/hide cols container div element
|
||||
this.contEl = null;
|
||||
|
||||
//tick to hide or show column
|
||||
this.tickToHide = f.tick_to_hide===false ? false : true;
|
||||
//enables/disables cols manager generation
|
||||
this.manager = f.manager===false ? false : true;
|
||||
//only if external headers
|
||||
this.headersTbl = f.headers_table || false;
|
||||
//only if external headers
|
||||
this.headersIndex = f.headers_index || 1;
|
||||
//id of container element
|
||||
this.contElTgtId = f.container_target_id || null;
|
||||
//alternative headers text
|
||||
this.headersText = f.headers_text || null;
|
||||
//id of button container element
|
||||
this.btnTgtId = f.btn_target_id || null;
|
||||
//defines show/hide cols text
|
||||
this.btnText = f.btn_text || 'Columns&#9660;';
|
||||
//defines show/hide cols button innerHtml
|
||||
this.btnHtml = f.btn_html || null;
|
||||
//defines css class for show/hide cols button
|
||||
this.btnCssClass = f.btn_css_class || 'colVis';
|
||||
//defines close link text
|
||||
this.btnCloseText = f.btn_close_text || 'Close';
|
||||
//defines close button innerHtml
|
||||
this.btnCloseHtml = f.btn_close_html || null;
|
||||
//defines css class for close button
|
||||
this.btnCloseCssClass = f.btn_close_css_class || this.btnCssClass;
|
||||
this.stylesheet = f.stylesheet || 'colsVisibility.css';
|
||||
//span containing show/hide cols button
|
||||
this.prfx = 'colVis_';
|
||||
//defines css class span containing show/hide cols
|
||||
this.spanCssClass = f.span_css_class || 'colVisSpan';
|
||||
this.prfxCont = this.prfx + 'Cont_';
|
||||
//defines css class div containing show/hide cols
|
||||
this.contCssClass = f.cont_css_class || 'colVisCont';
|
||||
//defines css class for cols list (ul)
|
||||
this.listCssClass = cfg.list_css_class ||'cols_checklist';
|
||||
//defines css class for list item (li)
|
||||
this.listItemCssClass = cfg.checklist_item_css_class ||
|
||||
'cols_checklist_item';
|
||||
//defines css class for selected list item (li)
|
||||
this.listSlcItemCssClass = cfg.checklist_selected_item_css_class ||
|
||||
'cols_checklist_slc_item';
|
||||
//text preceding columns list
|
||||
this.text = f.text || (this.tickToHide ? 'Hide: ' : 'Show: ');
|
||||
this.atStart = f.at_start || null;
|
||||
this.enableHover = Boolean(f.enable_hover);
|
||||
//enables select all option
|
||||
this.enableTickAll = Boolean(f.enable_tick_all);
|
||||
//text preceding columns list
|
||||
this.tickAllText = f.tick_all_text || 'Select all:';
|
||||
|
||||
//array containing hidden columns indexes
|
||||
this.hiddenCols = [];
|
||||
this.tblHasColTag = (Dom.tag(tf.tbl,'col').length > 0);
|
||||
|
||||
//callback invoked just after cols manager is loaded
|
||||
this.onLoaded = Types.isFn(f.on_loaded) ? f.on_loaded : null;
|
||||
//calls function before cols manager is opened
|
||||
this.onBeforeOpen = Types.isFn(f.on_before_open) ?
|
||||
f.on_before_open : null;
|
||||
//calls function after cols manager is opened
|
||||
this.onAfterOpen = Types.isFn(f.on_after_open) ? f.on_after_open : null;
|
||||
//calls function before cols manager is closed
|
||||
this.onBeforeClose = Types.isFn(f.on_before_close) ?
|
||||
f.on_before_close : null;
|
||||
//calls function after cols manager is closed
|
||||
this.onAfterClose = Types.isFn(f.on_after_close) ?
|
||||
f.on_after_close : null;
|
||||
|
||||
//callback before col is hidden
|
||||
this.onBeforeColHidden = Types.isFn(f.on_before_col_hidden) ?
|
||||
f.on_before_col_hidden : null;
|
||||
//callback after col is hidden
|
||||
this.onAfterColHidden = Types.isFn(f.on_after_col_hidden) ?
|
||||
f.on_after_col_hidden : null;
|
||||
//callback before col is displayed
|
||||
this.onBeforeColDisplayed = Types.isFn(f.on_before_col_displayed) ?
|
||||
f.on_before_col_displayed : null;
|
||||
//callback after col is displayed
|
||||
this.onAfterColDisplayed = Types.isFn(f.on_after_col_displayed) ?
|
||||
f.on_after_col_displayed : null;
|
||||
|
||||
//Grid layout compatibility
|
||||
if(tf.gridLayout){
|
||||
this.headersTbl = tf.feature('gridLayout').headTbl; //headers table
|
||||
this.headersIndex = 0; //headers index
|
||||
this.onAfterColDisplayed = function(){};
|
||||
this.onAfterColHidden = function(){};
|
||||
}
|
||||
|
||||
//Loads extension stylesheet
|
||||
tf.import(f.name+'Style', tf.stylePath + this.stylesheet, null, 'link');
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
toggle(){
|
||||
var contDisplay = this.contEl.style.display;
|
||||
var onBeforeOpen = this.onBeforeOpen;
|
||||
var onBeforeClose = this.onBeforeClose;
|
||||
var onAfterOpen = this.onAfterOpen;
|
||||
var onAfterClose = this.onAfterClose;
|
||||
|
||||
if(onBeforeOpen && contDisplay !== 'inline'){
|
||||
onBeforeOpen.call(null, this);
|
||||
}
|
||||
if(onBeforeClose && contDisplay === 'inline'){
|
||||
onBeforeClose.call(null, this);
|
||||
}
|
||||
|
||||
this.contEl.style.display = contDisplay === 'inline' ?
|
||||
'none' : 'inline';
|
||||
|
||||
if(onAfterOpen && contDisplay !== 'inline'){
|
||||
onAfterOpen.call(null, this);
|
||||
}
|
||||
if(onAfterClose && contDisplay === 'inline'){
|
||||
onAfterClose.call(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
checkItem(lbl){
|
||||
var li = lbl.parentNode;
|
||||
if(!li || !lbl){
|
||||
return;
|
||||
}
|
||||
var isChecked = lbl.firstChild.checked;
|
||||
var colIndex = lbl.firstChild.getAttribute('id').split('_')[1];
|
||||
colIndex = parseInt(colIndex, 10);
|
||||
if(isChecked){
|
||||
Dom.addClass(li, this.listSlcItemCssClass);
|
||||
} else {
|
||||
Dom.removeClass(li, this.listSlcItemCssClass);
|
||||
}
|
||||
|
||||
var hide = false;
|
||||
if((this.tickToHide && isChecked) || (!this.tickToHide && !isChecked)){
|
||||
hide = true;
|
||||
}
|
||||
this.setHidden(colIndex, hide);
|
||||
}
|
||||
|
||||
init(){
|
||||
if(!this.manager){
|
||||
return;
|
||||
}
|
||||
this.buildBtn();
|
||||
this.buildManager();
|
||||
|
||||
this.initialized = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build main button UI
|
||||
*/
|
||||
buildBtn(){
|
||||
if(this.btnEl){
|
||||
return;
|
||||
}
|
||||
var tf = this.tf;
|
||||
var span = Dom.create('span', ['id', this.prfx+tf.id]);
|
||||
span.className = this.spanCssClass;
|
||||
|
||||
//Container element (rdiv or custom element)
|
||||
if(!this.btnTgtId){
|
||||
tf.setToolbar();
|
||||
}
|
||||
var targetEl = !this.btnTgtId ? tf.rDiv : Dom.id(this.btnTgtId);
|
||||
|
||||
if(!this.btnTgtId){
|
||||
var firstChild = targetEl.firstChild;
|
||||
firstChild.parentNode.insertBefore(span, firstChild);
|
||||
} else {
|
||||
targetEl.appendChild(span);
|
||||
}
|
||||
|
||||
if(!this.btnHtml){
|
||||
var btn = Dom.create('a', ['href','javascript:;']);
|
||||
btn.className = this.btnCssClass;
|
||||
btn.title = this.desc;
|
||||
|
||||
btn.innerHTML = this.btnText;
|
||||
span.appendChild(btn);
|
||||
if(!this.enableHover){
|
||||
Event.add(btn, 'click', (evt)=> { this.toggle(evt); });
|
||||
} else {
|
||||
Event.add(btn, 'mouseover', (evt)=> { this.toggle(evt); });
|
||||
}
|
||||
} else { //Custom html
|
||||
span.innerHTML = this.btnHtml;
|
||||
var colVisEl = span.firstChild;
|
||||
if(!this.enableHover){
|
||||
Event.add(colVisEl, 'click', (evt)=> { this.toggle(evt); });
|
||||
} else {
|
||||
Event.add(colVisEl, 'mouseover', (evt)=> { this.toggle(evt); });
|
||||
}
|
||||
}
|
||||
|
||||
this.spanEl = span;
|
||||
this.btnEl = this.spanEl.firstChild;
|
||||
|
||||
if(this.onLoaded){
|
||||
this.onLoaded.call(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build columns manager UI
|
||||
*/
|
||||
buildManager(){
|
||||
var tf = this.tf;
|
||||
|
||||
var container = !this.contElTgtId ?
|
||||
Dom.create('div', ['id', this.prfxCont+tf.id]) :
|
||||
Dom.id(this.contElTgtId);
|
||||
container.className = this.contCssClass;
|
||||
|
||||
//Extension description
|
||||
var extNameLabel = Dom.create('p');
|
||||
extNameLabel.innerHTML = this.text;
|
||||
container.appendChild(extNameLabel);
|
||||
|
||||
//Headers list
|
||||
var ul = Dom.create('ul' ,['id', 'ul'+this.name+'_'+tf.id]);
|
||||
ul.className = this.listCssClass;
|
||||
|
||||
var tbl = this.headersTbl ? this.headersTbl : tf.tbl;
|
||||
var headerIndex = this.headersTbl ?
|
||||
this.headersIndex : tf.getHeadersRowIndex();
|
||||
var headerRow = tbl.rows[headerIndex];
|
||||
|
||||
//Tick all option
|
||||
if(this.enableTickAll){
|
||||
var li = Dom.createCheckItem(
|
||||
'col__'+tf.id, this.tickAllText, this.tickAllText);
|
||||
Dom.addClass(li, this.listItemCssClass);
|
||||
ul.appendChild(li);
|
||||
li.check.checked = !this.tickToHide;
|
||||
|
||||
Event.add(li.check, 'click', ()=> {
|
||||
for(var h = 0; h < headerRow.cells.length; h++){
|
||||
var itm = Dom.id('col_'+h+'_'+tf.id);
|
||||
if(itm && li.check.checked !== itm.checked){
|
||||
itm.click();
|
||||
itm.checked = li.check.checked;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
for(var i = 0; i < headerRow.cells.length; i++){
|
||||
var cell = headerRow.cells[i];
|
||||
var cellText = this.headersText && this.headersText[i] ?
|
||||
this.headersText[i] : this._getHeaderText(cell);
|
||||
var liElm = Dom.createCheckItem(
|
||||
'col_'+i+'_'+tf.id, cellText, cellText);
|
||||
Dom.addClass(liElm, this.listItemCssClass);
|
||||
if(!this.tickToHide){
|
||||
Dom.addClass(liElm, this.listSlcItemCssClass);
|
||||
}
|
||||
ul.appendChild(liElm);
|
||||
if(!this.tickToHide){
|
||||
liElm.check.checked = true;
|
||||
}
|
||||
|
||||
Event.add(liElm.check, 'click', (evt)=> {
|
||||
var elm = Event.target(evt);
|
||||
var lbl = elm.parentNode;
|
||||
this.checkItem(lbl);
|
||||
});
|
||||
}
|
||||
|
||||
//separator
|
||||
var p = Dom.create('p', ['align','center']);
|
||||
var btn;
|
||||
//Close link
|
||||
if(!this.btnCloseHtml){
|
||||
btn = Dom.create('a', ['href','javascript:;']);
|
||||
btn.className = this.btnCloseCssClass;
|
||||
btn.innerHTML = this.btnCloseText;
|
||||
Event.add(btn, 'click', (evt)=> { this.toggle(evt); });
|
||||
p.appendChild(btn);
|
||||
} else {
|
||||
p.innerHTML = this.btnCloseHtml;
|
||||
btn = p.firstChild;
|
||||
Event.add(btn, 'click', (evt)=> { this.toggle(evt); });
|
||||
}
|
||||
|
||||
container.appendChild(ul);
|
||||
container.appendChild(p);
|
||||
|
||||
this.btnEl.parentNode.insertBefore(container, this.btnEl);
|
||||
this.contEl = container;
|
||||
|
||||
if(this.atStart){
|
||||
var a = this.atStart;
|
||||
for(var k=0; k<a.length; k++){
|
||||
var itm = Dom.id('col_'+a[k]+'_'+tf.id);
|
||||
if(itm){
|
||||
itm.click();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide or show specified columns
|
||||
* @param {Numner} colIndex Column index
|
||||
* @param {Boolean} hide hide column if true or show if false
|
||||
*/
|
||||
setHidden(colIndex, hide){
|
||||
var tf = this.tf;
|
||||
var tbl = tf.tbl;
|
||||
|
||||
if(this.onBeforeColHidden && hide){
|
||||
this.onBeforeColHidden.call(null, this, colIndex);
|
||||
}
|
||||
if(this.onBeforeColDisplayed && !hide){
|
||||
this.onBeforeColDisplayed.call(null, this, colIndex);
|
||||
}
|
||||
|
||||
this._hideCells(tbl, colIndex, hide);
|
||||
if(this.headersTbl){
|
||||
this._hideCells(this.headersTbl, colIndex, hide);
|
||||
}
|
||||
|
||||
var hiddenCols = this.hiddenCols;
|
||||
if(hide){
|
||||
if(hiddenCols.indexOf(colIndex) === -1){
|
||||
this.hiddenCols.push(colIndex);
|
||||
}
|
||||
} else {
|
||||
var itemIndex = Arr.indexByValue(hiddenCols, colIndex, true);
|
||||
if(hiddenCols.indexOf(colIndex) !== -1){
|
||||
this.hiddenCols.splice(itemIndex, 1);
|
||||
}
|
||||
}
|
||||
|
||||
var gridLayout;
|
||||
var headTbl;
|
||||
var gridColElms;
|
||||
if(this.onAfterColHidden && hide){
|
||||
//This event is fired just after a column is displayed for
|
||||
//grid_layout support
|
||||
//TODO: grid layout module should be responsible for those
|
||||
//calculations
|
||||
if(tf.gridLayout){
|
||||
gridLayout = tf.feature('gridLayout');
|
||||
headTbl = gridLayout.headTbl;
|
||||
gridColElms = gridLayout.gridColElms;
|
||||
var hiddenWidth = parseInt(
|
||||
gridColElms[colIndex].style.width, 10);
|
||||
|
||||
var headTblW = parseInt(headTbl.style.width, 10);
|
||||
headTbl.style.width = headTblW - hiddenWidth + 'px';
|
||||
tbl.style.width = headTbl.style.width;
|
||||
}
|
||||
this.onAfterColHidden.call(null, this, colIndex);
|
||||
}
|
||||
|
||||
if(this.onAfterColDisplayed && !hide){
|
||||
//This event is fired just after a column is displayed for
|
||||
//grid_layout support
|
||||
//TODO: grid layout module should be responsible for those
|
||||
//calculations
|
||||
if(tf.gridLayout){
|
||||
gridLayout = tf.feature('gridLayout');
|
||||
headTbl = gridLayout.headTbl;
|
||||
gridColElms = gridLayout.gridColElms;
|
||||
var width = parseInt(gridColElms[colIndex].style.width, 10);
|
||||
headTbl.style.width =
|
||||
(parseInt(headTbl.style.width, 10) + width) + 'px';
|
||||
tf.tbl.style.width = headTbl.style.width;
|
||||
}
|
||||
this.onAfterColDisplayed.call(null, this, colIndex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Show specified column
|
||||
* @param {Number} colIndex Column index
|
||||
*/
|
||||
showCol(colIndex){
|
||||
if(colIndex === undefined || !this.isColHidden(colIndex)){
|
||||
return;
|
||||
}
|
||||
if(this.manager && this.contEl){
|
||||
var itm = Dom.id('col_'+colIndex+'_'+this.tf.id);
|
||||
if(itm){ itm.click(); }
|
||||
} else {
|
||||
this.setHidden(colIndex, false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide specified column
|
||||
* @param {Number} colIndex Column index
|
||||
*/
|
||||
hideCol(colIndex){
|
||||
if(colIndex === undefined || this.isColHidden(colIndex)){
|
||||
return;
|
||||
}
|
||||
if(this.manager && this.contEl){
|
||||
var itm = Dom.id('col_'+colIndex+'_'+this.tf.id);
|
||||
if(itm){ itm.click(); }
|
||||
} else {
|
||||
this.setHidden(colIndex, true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if specified column is hidden
|
||||
* @param {Number} colIndex Column index
|
||||
*/
|
||||
isColHidden(colIndex){
|
||||
if(this.hiddenCols.indexOf(colIndex) !== -1){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle visibility of specified column
|
||||
* @param {Number} colIndex Column index
|
||||
*/
|
||||
toggleCol(colIndex){
|
||||
if(colIndex === undefined || this.isColHidden(colIndex)){
|
||||
this.showCol(colIndex);
|
||||
} else {
|
||||
this.hideCol(colIndex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the indexes of the columns currently hidden
|
||||
* @return {Array} column indexes
|
||||
*/
|
||||
getHiddenCols(){
|
||||
return this.hiddenCols;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the columns manager
|
||||
*/
|
||||
destroy(){
|
||||
if(!this.btnEl && !this.contEl){
|
||||
return;
|
||||
}
|
||||
if(Dom.id(this.contElTgtId)){
|
||||
Dom.id(this.contElTgtId).innerHTML = '';
|
||||
} else {
|
||||
this.contEl.innerHTML = '';
|
||||
this.contEl.parentNode.removeChild(this.contEl);
|
||||
this.contEl = null;
|
||||
}
|
||||
this.btnEl.innerHTML = '';
|
||||
this.btnEl.parentNode.removeChild(this.btnEl);
|
||||
this.btnEl = null;
|
||||
this.initialized = false;
|
||||
}
|
||||
|
||||
_getHeaderText(cell){
|
||||
if(!cell.hasChildNodes){
|
||||
return '';
|
||||
}
|
||||
|
||||
for(var i=0; i<cell.childNodes.length; i++){
|
||||
var n = cell.childNodes[i];
|
||||
if(n.nodeType === 3){
|
||||
return n.nodeValue;
|
||||
} else if(n.nodeType === 1){
|
||||
if(n.id && n.id.indexOf('popUp') !== -1){
|
||||
continue;
|
||||
} else {
|
||||
return Dom.getText(n);
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
_hideCells(tbl, colIndex, hide){
|
||||
for(var i=0; i<tbl.rows.length; i++){
|
||||
var row = tbl.rows[i];
|
||||
var cell = row.cells[colIndex];
|
||||
if(cell){
|
||||
cell.style.display = hide ? 'none' : '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,267 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../../">
|
||||
<title data-ice="title">src/extensions/filtersVisibility/filtersVisibility.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/extensions/filtersVisibility/filtersVisibility.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../../dom';
|
||||
import Types from '../../types';
|
||||
import Event from '../../event';
|
||||
|
||||
export default class FiltersVisibility{
|
||||
|
||||
/**
|
||||
* Filters Row Visibility extension
|
||||
* @param {Object} tf TableFilter instance
|
||||
* @param {Object} f Config
|
||||
*/
|
||||
constructor(tf, f){
|
||||
|
||||
this.initialized = false;
|
||||
this.name = f.name;
|
||||
this.desc = f.description || 'Filters row visibility manager';
|
||||
|
||||
// Path and image filenames
|
||||
this.stylesheet = f.stylesheet || 'filtersVisibility.css';
|
||||
this.icnExpand = f.expand_icon_name || 'icn_exp.png';
|
||||
this.icnCollapse = f.collapse_icon_name || 'icn_clp.png';
|
||||
|
||||
//expand/collapse filters span element
|
||||
this.contEl = null;
|
||||
//expand/collapse filters btn element
|
||||
this.btnEl = null;
|
||||
|
||||
this.icnExpandHtml = '<img src="'+ tf.themesPath + this.icnExpand +
|
||||
'" alt="Expand filters" >';
|
||||
this.icnCollapseHtml = '<img src="'+ tf.themesPath + this.icnCollapse +
|
||||
'" alt="Collapse filters" >';
|
||||
this.defaultText = 'Toggle filters';
|
||||
|
||||
//id of container element
|
||||
this.targetId = f.target_id || null;
|
||||
//enables/disables expand/collapse icon
|
||||
this.enableIcon = f.enable_icon===false ? false : true;
|
||||
this.btnText = f.btn_text || '';
|
||||
|
||||
//defines expand/collapse filters text
|
||||
this.collapseBtnHtml = this.enableIcon ?
|
||||
this.icnCollapseHtml + this.btnText :
|
||||
this.btnText || this.defaultText;
|
||||
this.expandBtnHtml = this.enableIcon ?
|
||||
this.icnExpandHtml + this.btnText :
|
||||
this.btnText || this.defaultText;
|
||||
|
||||
//defines expand/collapse filters button innerHtml
|
||||
this.btnHtml = f.btn_html || null;
|
||||
//defines css class for expand/collapse filters button
|
||||
this.btnCssClass = f.btn_css_class || 'btnExpClpFlt';
|
||||
//defines css class span containing expand/collapse filters
|
||||
this.contCssClass = f.cont_css_class || 'expClpFlt';
|
||||
this.filtersRowIndex = !Types.isUndef(f.filters_row_index) ?
|
||||
f.filters_row_index : tf.getFiltersRowIndex();
|
||||
|
||||
this.visibleAtStart = !Types.isUndef(f.visible_at_start) ?
|
||||
Boolean(f.visible_at_start) : true;
|
||||
|
||||
// Prefix
|
||||
this.prfx = 'fltsVis_';
|
||||
|
||||
//callback before filters row is shown
|
||||
this.onBeforeShow = Types.isFn(f.on_before_show) ?
|
||||
f.on_before_show : null;
|
||||
//callback after filters row is shown
|
||||
this.onAfterShow = Types.isFn(f.on_after_show) ?
|
||||
f.on_after_show : null;
|
||||
//callback before filters row is hidden
|
||||
this.onBeforeHide = Types.isFn(f.on_before_hide) ?
|
||||
f.on_before_hide : null;
|
||||
//callback after filters row is hidden
|
||||
this.onAfterHide = Types.isFn(f.on_after_hide) ? f.on_after_hide : null;
|
||||
|
||||
//Loads extension stylesheet
|
||||
tf.import(f.name+'Style', tf.stylePath + this.stylesheet, null, 'link');
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialise extension
|
||||
*/
|
||||
init(){
|
||||
if(this.initialized){
|
||||
return;
|
||||
}
|
||||
|
||||
this.buildUI();
|
||||
this.initialized = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build UI elements
|
||||
*/
|
||||
buildUI(){
|
||||
let tf = this.tf;
|
||||
let span = Dom.create('span',['id', this.prfx+tf.id]);
|
||||
span.className = this.contCssClass;
|
||||
|
||||
//Container element (rdiv or custom element)
|
||||
if(!this.targetId){
|
||||
tf.setToolbar();
|
||||
}
|
||||
let targetEl = !this.targetId ? tf.rDiv : Dom.id(this.targetId);
|
||||
|
||||
if(!this.targetId){
|
||||
let firstChild = targetEl.firstChild;
|
||||
firstChild.parentNode.insertBefore(span, firstChild);
|
||||
} else {
|
||||
targetEl.appendChild(span);
|
||||
}
|
||||
|
||||
let btn;
|
||||
if(!this.btnHtml){
|
||||
btn = Dom.create('a', ['href', 'javascript:void(0);']);
|
||||
btn.className = this.btnCssClass;
|
||||
btn.title = this.btnText || this.defaultText;
|
||||
btn.innerHTML = this.collapseBtnHtml;
|
||||
span.appendChild(btn);
|
||||
Event.add(btn, 'click', ()=> this.toggle());
|
||||
} else { //Custom html
|
||||
span.innerHTML = this.btnHtml;
|
||||
btn = span.firstChild;
|
||||
Event.add(btn, 'click', ()=> this.toggle());
|
||||
}
|
||||
|
||||
this.contEl = span;
|
||||
this.btnEl = btn;
|
||||
|
||||
if(!this.visibleAtStart){
|
||||
this.toggle();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle filters visibility
|
||||
*/
|
||||
toggle(){
|
||||
let tf = this.tf;
|
||||
let tbl = tf.gridLayout? tf.feature('gridLayout').headTbl : tf.tbl;
|
||||
let fltRow = tbl.rows[this.filtersRowIndex];
|
||||
let fltRowDisplay = fltRow.style.display;
|
||||
|
||||
if(this.onBeforeShow && fltRowDisplay !== ''){
|
||||
this.onBeforeShow.call(this, this);
|
||||
}
|
||||
if(this.onBeforeHide && fltRowDisplay === ''){
|
||||
this.onBeforeHide.call(null, this);
|
||||
}
|
||||
|
||||
fltRow.style.display = fltRowDisplay==='' ? 'none' : '';
|
||||
if(this.enableIcon && !this.btnHtml){
|
||||
this.btnEl.innerHTML = fltRowDisplay === '' ?
|
||||
this.expandBtnHtml : this.collapseBtnHtml;
|
||||
}
|
||||
|
||||
if(this.onAfterShow && fltRowDisplay !== ''){
|
||||
this.onAfterShow.call(null, this);
|
||||
}
|
||||
if(this.onAfterHide && fltRowDisplay === ''){
|
||||
this.onAfterHide.call(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy the UI
|
||||
*/
|
||||
destroy(){
|
||||
if(!this.btnEl && !this.contEl){
|
||||
return;
|
||||
}
|
||||
|
||||
this.btnEl.innerHTML = '';
|
||||
this.btnEl.parentNode.removeChild(this.btnEl);
|
||||
this.btnEl = null;
|
||||
|
||||
this.contEl.innerHTML = '';
|
||||
this.contEl.parentNode.removeChild(this.contEl);
|
||||
this.contEl = null;
|
||||
this.initialized = false;
|
||||
}
|
||||
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,548 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../../">
|
||||
<title data-ice="title">src/extensions/sort/adapterSortabletable.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/extensions/sort/adapterSortabletable.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Types from '../../types';
|
||||
import Dom from '../../dom';
|
||||
import Arr from '../../array';
|
||||
import Event from '../../event';
|
||||
import DateHelper from '../../date';
|
||||
import Helpers from '../../helpers';
|
||||
|
||||
export default class AdapterSortableTable{
|
||||
|
||||
/**
|
||||
* SortableTable Adapter module
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf, opts){
|
||||
// Configuration object
|
||||
let f = tf.config();
|
||||
|
||||
this.initialized = false;
|
||||
this.name = opts.name;
|
||||
this.desc = opts.description || 'Sortable table';
|
||||
|
||||
//indicates if paging is enabled
|
||||
this.isPaged = false;
|
||||
|
||||
//indicates if tables was sorted
|
||||
this.sorted = false;
|
||||
|
||||
this.sortTypes = Types.isArray(opts.types) ? opts.types : [];
|
||||
this.sortColAtStart = Types.isArray(opts.sort_col_at_start) ?
|
||||
opts.sort_col_at_start : null;
|
||||
this.asyncSort = Boolean(opts.async_sort);
|
||||
this.triggerIds = Types.isArray(opts.trigger_ids) ?
|
||||
opts.trigger_ids : [];
|
||||
|
||||
// edit .sort-arrow.descending / .sort-arrow.ascending in
|
||||
// tablefilter.css to reflect any path change
|
||||
this.imgPath = opts.images_path || tf.themesPath;
|
||||
this.imgBlank = opts.image_blank || 'blank.png';
|
||||
this.imgClassName = opts.image_class_name || 'sort-arrow';
|
||||
this.imgAscClassName = opts.image_asc_class_name || 'ascending';
|
||||
this.imgDescClassName = opts.image_desc_class_name ||'descending';
|
||||
//cell attribute storing custom key
|
||||
this.customKey = opts.custom_key || 'data-tf-sortKey';
|
||||
|
||||
/*** TF additional events ***/
|
||||
//additional paging events for alternating background
|
||||
// o.Evt._Paging.nextEvt = function(){
|
||||
// if(o.sorted && o.alternateBgs) o.Filter();
|
||||
// }
|
||||
// o.Evt._Paging.prevEvt = o.Evt._Paging.nextEvt;
|
||||
// o.Evt._Paging.firstEvt = o.Evt._Paging.nextEvt;
|
||||
// o.Evt._Paging.lastEvt = o.Evt._Paging.nextEvt;
|
||||
// o.Evt._OnSlcPagesChangeEvt = o.Evt._Paging.nextEvt;
|
||||
|
||||
// callback invoked after sort is loaded and instanciated
|
||||
this.onSortLoaded = Types.isFn(opts.on_sort_loaded) ?
|
||||
opts.on_sort_loaded : null;
|
||||
// callback invoked before table is sorted
|
||||
this.onBeforeSort = Types.isFn(opts.on_before_sort) ?
|
||||
opts.on_before_sort : null;
|
||||
// callback invoked after table is sorted
|
||||
this.onAfterSort = Types.isFn(opts.on_after_sort) ?
|
||||
f.on_after_sort : null;
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
init(){
|
||||
let tf = this.tf;
|
||||
let adpt = this;
|
||||
|
||||
// SortableTable class sanity check (sortabletable.js)
|
||||
if(Types.isUndef(SortableTable)){
|
||||
throw new Error('SortableTable class not found.');
|
||||
}
|
||||
|
||||
this.overrideSortableTable();
|
||||
this.setSortTypes();
|
||||
|
||||
//Column sort at start
|
||||
let sortColAtStart = adpt.sortColAtStart;
|
||||
if(sortColAtStart){
|
||||
this.stt.sort(sortColAtStart[0], sortColAtStart[1]);
|
||||
}
|
||||
|
||||
if(this.onSortLoaded){
|
||||
this.onSortLoaded.call(null, tf, this);
|
||||
}
|
||||
|
||||
/*** SortableTable callbacks ***/
|
||||
this.stt.onbeforesort = function(){
|
||||
if(this.onBeforeSort){
|
||||
this.onBeforeSort.call(null, tf, this.stt.sortColumn);
|
||||
}
|
||||
|
||||
/*** sort behaviour for paging ***/
|
||||
if(tf.paging){
|
||||
adpt.isPaged = true;
|
||||
tf.paging = false;
|
||||
tf.feature('paging').destroy();
|
||||
}
|
||||
};
|
||||
|
||||
this.stt.onsort = function(){
|
||||
adpt.sorted = true;
|
||||
|
||||
//rows alternating bg issue
|
||||
// TODO: move into AlternateRows component
|
||||
if(tf.alternateBgs){
|
||||
let rows = tf.tbl.rows, c = 0;
|
||||
|
||||
let setClass = function(row, i, removeOnly){
|
||||
if(Types.isUndef(removeOnly)){
|
||||
removeOnly = false;
|
||||
}
|
||||
let altRows = tf.feature('alternateRows'),
|
||||
oddCls = altRows.oddCss,
|
||||
evenCls = altRows.evenCss;
|
||||
Dom.removeClass(row, oddCls);
|
||||
Dom.removeClass(row, evenCls);
|
||||
|
||||
if(!removeOnly){
|
||||
Dom.addClass(row, i % 2 ? oddCls : evenCls);
|
||||
}
|
||||
};
|
||||
|
||||
for (let i = tf.refRow; i < tf.nbRows; i++){
|
||||
let isRowValid = rows[i].getAttribute('validRow');
|
||||
if(tf.paging && rows[i].style.display === ''){
|
||||
setClass(rows[i], c);
|
||||
c++;
|
||||
} else {
|
||||
if((isRowValid==='true' || isRowValid===null) &&
|
||||
rows[i].style.display === ''){
|
||||
setClass(rows[i], c);
|
||||
c++;
|
||||
} else {
|
||||
setClass(rows[i], c, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//sort behaviour for paging
|
||||
if(adpt.isPaged){
|
||||
let paginator = tf.feature('paging');
|
||||
paginator.reset(false);
|
||||
paginator.setPage(paginator.getPage());
|
||||
adpt.isPaged = false;
|
||||
}
|
||||
|
||||
if(adpt.onAfterSort){
|
||||
adpt.onAfterSort.call(null, tf, tf.stt.sortColumn);
|
||||
}
|
||||
};
|
||||
|
||||
this.initialized = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sort specified column
|
||||
* @param {Number} colIdx Column index
|
||||
*/
|
||||
sortByColumnIndex(colIdx){
|
||||
this.stt.sort(colIdx);
|
||||
}
|
||||
|
||||
overrideSortableTable(){
|
||||
let adpt = this,
|
||||
tf = this.tf;
|
||||
|
||||
/**
|
||||
* Overrides headerOnclick method in order to handle th event
|
||||
* @param {Object} e [description]
|
||||
*/
|
||||
SortableTable.prototype.headerOnclick = function(evt){
|
||||
if(!adpt.initialized){
|
||||
return;
|
||||
}
|
||||
|
||||
// find Header element
|
||||
let el = evt.target || evt.srcElement;
|
||||
|
||||
while(el.tagName !== 'TD' && el.tagName !== 'TH'){
|
||||
el = el.parentNode;
|
||||
}
|
||||
|
||||
this.sort(
|
||||
SortableTable.msie ?
|
||||
SortableTable.getCellIndex(el) : el.cellIndex
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Overrides getCellIndex IE returns wrong cellIndex when columns are
|
||||
* hidden
|
||||
* @param {Object} oTd TD element
|
||||
* @return {Number} Cell index
|
||||
*/
|
||||
SortableTable.getCellIndex = function(oTd){
|
||||
let cells = oTd.parentNode.cells,
|
||||
l = cells.length, i;
|
||||
for (i = 0; cells[i] != oTd && i < l; i++){}
|
||||
return i;
|
||||
};
|
||||
|
||||
/**
|
||||
* Overrides initHeader in order to handle filters row position
|
||||
* @param {Array} oSortTypes
|
||||
*/
|
||||
SortableTable.prototype.initHeader = function(oSortTypes){
|
||||
let stt = this;
|
||||
if (!stt.tHead){
|
||||
if(tf.gridLayout){
|
||||
stt.tHead = tf.feature('gridLayout').headTbl.tHead;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
stt.headersRow = tf.headersRow;
|
||||
let cells = stt.tHead.rows[stt.headersRow].cells;
|
||||
stt.sortTypes = oSortTypes || [];
|
||||
let l = cells.length;
|
||||
let img, c;
|
||||
|
||||
for (let i = 0; i < l; i++) {
|
||||
c = cells[i];
|
||||
if (stt.sortTypes[i] !== null && stt.sortTypes[i] !== 'None'){
|
||||
c.style.cursor = 'pointer';
|
||||
img = Dom.create('img',
|
||||
['src', adpt.imgPath + adpt.imgBlank]);
|
||||
c.appendChild(img);
|
||||
if (stt.sortTypes[i] !== null){
|
||||
c.setAttribute( '_sortType', stt.sortTypes[i]);
|
||||
}
|
||||
Event.add(c, 'click', stt._headerOnclick);
|
||||
} else {
|
||||
c.setAttribute('_sortType', oSortTypes[i]);
|
||||
c._sortType = 'None';
|
||||
}
|
||||
}
|
||||
stt.updateHeaderArrows();
|
||||
};
|
||||
|
||||
/**
|
||||
* Overrides updateHeaderArrows in order to handle arrows indicators
|
||||
*/
|
||||
SortableTable.prototype.updateHeaderArrows = function(){
|
||||
let stt = this;
|
||||
let cells, l, img;
|
||||
|
||||
// external headers
|
||||
if(adpt.asyncSort && adpt.triggerIds.length > 0){
|
||||
let triggers = adpt.triggerIds;
|
||||
cells = [];
|
||||
l = triggers.length;
|
||||
for(let j=0; j<triggers.length; j++){
|
||||
cells.push(Dom.id(triggers[j]));
|
||||
}
|
||||
} else {
|
||||
if(!this.tHead){
|
||||
return;
|
||||
}
|
||||
cells = stt.tHead.rows[stt.headersRow].cells;
|
||||
l = cells.length;
|
||||
}
|
||||
for(let i = 0; i < l; i++){
|
||||
let cellAttr = cells[i].getAttribute('_sortType');
|
||||
if(cellAttr !== null && cellAttr !== 'None'){
|
||||
img = cells[i].lastChild || cells[i];
|
||||
if(img.nodeName.toLowerCase() !== 'img'){
|
||||
img = Dom.create('img',
|
||||
['src', adpt.imgPath + adpt.imgBlank]);
|
||||
cells[i].appendChild(img);
|
||||
}
|
||||
if (i === stt.sortColumn){
|
||||
img.className = adpt.imgClassName +' '+
|
||||
(this.descending ?
|
||||
adpt.imgDescClassName :
|
||||
adpt.imgAscClassName);
|
||||
} else{
|
||||
img.className = adpt.imgClassName;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Overrides getRowValue for custom key value feature
|
||||
* @param {Object} oRow Row element
|
||||
* @param {String} sType
|
||||
* @param {Number} nColumn
|
||||
* @return {String}
|
||||
*/
|
||||
SortableTable.prototype.getRowValue = function(oRow, sType, nColumn){
|
||||
let stt = this;
|
||||
// if we have defined a custom getRowValue use that
|
||||
let sortTypeInfo = stt._sortTypeInfo[sType];
|
||||
if (sortTypeInfo && sortTypeInfo.getRowValue){
|
||||
return sortTypeInfo.getRowValue(oRow, nColumn);
|
||||
}
|
||||
let c = oRow.cells[nColumn];
|
||||
let s = SortableTable.getInnerText(c);
|
||||
return stt.getValueFromString(s, sType);
|
||||
};
|
||||
|
||||
/**
|
||||
* Overrides getInnerText in order to avoid Firefox unexpected sorting
|
||||
* behaviour with untrimmed text elements
|
||||
* @param {Object} oNode DOM element
|
||||
* @return {String} DOM element inner text
|
||||
*/
|
||||
SortableTable.getInnerText = function(oNode){
|
||||
if(!oNode){
|
||||
return;
|
||||
}
|
||||
if(oNode.getAttribute(adpt.customKey)){
|
||||
return oNode.getAttribute(adpt.customKey);
|
||||
} else {
|
||||
return Dom.getText(oNode);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
addSortType(){
|
||||
var args = arguments;
|
||||
SortableTable.prototype.addSortType(args[0], args[1], args[2], args[3]);
|
||||
}
|
||||
|
||||
setSortTypes(){
|
||||
let tf = this.tf,
|
||||
sortTypes = this.sortTypes,
|
||||
_sortTypes = [];
|
||||
|
||||
for(let i=0; i<tf.nbCells; i++){
|
||||
let colType;
|
||||
|
||||
if(sortTypes[i]){
|
||||
colType = sortTypes[i].toLowerCase();
|
||||
if(colType === 'none'){
|
||||
colType = 'None';
|
||||
}
|
||||
} else { // resolve column types
|
||||
if(tf.hasColNbFormat && tf.colNbFormat[i] !== null){
|
||||
colType = tf.colNbFormat[i].toLowerCase();
|
||||
} else if(tf.hasColDateType && tf.colDateType[i] !== null){
|
||||
colType = tf.colDateType[i].toLowerCase()+'date';
|
||||
} else {
|
||||
colType = 'String';
|
||||
}
|
||||
}
|
||||
_sortTypes.push(colType);
|
||||
}
|
||||
|
||||
//Public TF method to add sort type
|
||||
|
||||
//Custom sort types
|
||||
this.addSortType('number', Number);
|
||||
this.addSortType('caseinsensitivestring', SortableTable.toUpperCase);
|
||||
this.addSortType('date', SortableTable.toDate);
|
||||
this.addSortType('string');
|
||||
this.addSortType('us', usNumberConverter);
|
||||
this.addSortType('eu', euNumberConverter);
|
||||
this.addSortType('dmydate', dmyDateConverter );
|
||||
this.addSortType('ymddate', ymdDateConverter);
|
||||
this.addSortType('mdydate', mdyDateConverter);
|
||||
this.addSortType('ddmmmyyyydate', ddmmmyyyyDateConverter);
|
||||
this.addSortType('ipaddress', ipAddress, sortIP);
|
||||
|
||||
this.stt = new SortableTable(tf.tbl, _sortTypes);
|
||||
|
||||
/*** external table headers adapter ***/
|
||||
if(this.asyncSort && this.triggerIds.length > 0){
|
||||
let triggers = this.triggerIds;
|
||||
for(let j=0; j<triggers.length; j++){
|
||||
if(triggers[j] === null){
|
||||
continue;
|
||||
}
|
||||
let trigger = Dom.id(triggers[j]);
|
||||
if(trigger){
|
||||
trigger.style.cursor = 'pointer';
|
||||
|
||||
Event.add(trigger, 'click', (evt) => {
|
||||
let elm = evt.target;
|
||||
if(!this.tf.sort){
|
||||
return;
|
||||
}
|
||||
this.stt.asyncSort(
|
||||
Arr.indexByValue(triggers, elm.id, true)
|
||||
);
|
||||
});
|
||||
trigger.setAttribute('_sortType', _sortTypes[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy sort
|
||||
*/
|
||||
destroy(){
|
||||
let tf = this.tf;
|
||||
this.sorted = false;
|
||||
this.initialized = false;
|
||||
this.stt.destroy();
|
||||
|
||||
let ids = tf.getFiltersId();
|
||||
for (let idx = 0; idx < ids.length; idx++){
|
||||
let header = tf.getHeaderElement(idx);
|
||||
let img = Dom.tag(header, 'img');
|
||||
|
||||
if(img.length === 1){
|
||||
header.removeChild(img[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Converters
|
||||
function usNumberConverter(s){
|
||||
return Helpers.removeNbFormat(s, 'us');
|
||||
}
|
||||
function euNumberConverter(s){
|
||||
return Helpers.removeNbFormat(s, 'eu');
|
||||
}
|
||||
function dateConverter(s, format){
|
||||
return DateHelper.format(s, format);
|
||||
}
|
||||
function dmyDateConverter(s){
|
||||
return dateConverter(s, 'DMY');
|
||||
}
|
||||
function mdyDateConverter(s){
|
||||
return dateConverter(s, 'MDY');
|
||||
}
|
||||
function ymdDateConverter(s){
|
||||
return dateConverter(s, 'YMD');
|
||||
}
|
||||
function ddmmmyyyyDateConverter(s){
|
||||
return dateConverter(s, 'DDMMMYYYY');
|
||||
}
|
||||
|
||||
function ipAddress(value){
|
||||
let vals = value.split('.');
|
||||
for (let x in vals) {
|
||||
let val = vals[x];
|
||||
while (3 > val.length){
|
||||
val = '0'+val;
|
||||
}
|
||||
vals[x] = val;
|
||||
}
|
||||
return vals.join('.');
|
||||
}
|
||||
|
||||
function sortIP(a,b){
|
||||
let aa = ipAddress(a.value.toLowerCase());
|
||||
let bb = ipAddress(b.value.toLowerCase());
|
||||
if (aa==bb){
|
||||
return 0;
|
||||
} else if (aa<bb){
|
||||
return -1;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,91 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../../">
|
||||
<title data-ice="title">src/extensions/sort/sort.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/extensions/sort/sort.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">// import 'script!sortabletable';
|
||||
import AdapterSortableTable from './adapterSortabletable';
|
||||
|
||||
if(!window.SortableTable){
|
||||
require('script!sortabletable');
|
||||
}
|
||||
|
||||
export default AdapterSortableTable;
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,106 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../">
|
||||
<title data-ice="title">src/helpers.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/helpers.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">/**
|
||||
* Misc helpers
|
||||
*/
|
||||
|
||||
import Str from './string';
|
||||
|
||||
export default {
|
||||
removeNbFormat(data, format){
|
||||
if(!data){
|
||||
return;
|
||||
}
|
||||
if(!format){
|
||||
format = 'us';
|
||||
}
|
||||
let n = data;
|
||||
if(Str.lower(format) === 'us'){
|
||||
n =+ n.replace(/[^\d\.-]/g,'');
|
||||
} else {
|
||||
n =+ n.replace(/[^\d\,-]/g,'').replace(',','.');
|
||||
}
|
||||
return n;
|
||||
}
|
||||
};
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,182 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/alternateRows.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/alternateRows.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../dom';
|
||||
|
||||
export class AlternateRows{
|
||||
|
||||
/**
|
||||
* Alternating rows color
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf) {
|
||||
var f = tf.config();
|
||||
//defines css class for even rows
|
||||
this.evenCss = f.even_row_css_class || 'even';
|
||||
//defines css class for odd rows
|
||||
this.oddCss = f.odd_row_css_class || 'odd';
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets alternating rows color
|
||||
*/
|
||||
init() {
|
||||
var tf = this.tf;
|
||||
if(!tf.hasGrid() && !tf.isFirstLoad){
|
||||
return;
|
||||
}
|
||||
var validRowsIndex = tf.validRowsIndex;
|
||||
var noValidRowsIndex = validRowsIndex===null;
|
||||
//1st index
|
||||
var beginIndex = noValidRowsIndex ? tf.refRow : 0;
|
||||
// nb indexes
|
||||
var indexLen = noValidRowsIndex ?
|
||||
tf.nbFilterableRows+beginIndex :
|
||||
validRowsIndex.length;
|
||||
var idx = 0;
|
||||
|
||||
//alternates bg color
|
||||
for(var j=beginIndex; j<indexLen; j++){
|
||||
var rowIdx = noValidRowsIndex ? j : validRowsIndex[j];
|
||||
this.setRowBg(rowIdx, idx);
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets row background color
|
||||
* @param {Number} rowIdx Row index
|
||||
* @param {Number} idx Valid rows collection index needed to calculate bg
|
||||
* color
|
||||
*/
|
||||
setRowBg(rowIdx, idx) {
|
||||
if(!this.tf.alternateBgs || isNaN(rowIdx)){
|
||||
return;
|
||||
}
|
||||
var rows = this.tf.tbl.rows;
|
||||
var i = isNaN(idx) ? rowIdx : idx;
|
||||
this.removeRowBg(rowIdx);
|
||||
|
||||
Dom.addClass(
|
||||
rows[rowIdx],
|
||||
(i%2) ? this.evenCss : this.oddCss
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes row background color
|
||||
* @param {Number} idx Row index
|
||||
*/
|
||||
removeRowBg(idx) {
|
||||
if(isNaN(idx)){
|
||||
return;
|
||||
}
|
||||
var rows = this.tf.tbl.rows;
|
||||
Dom.removeClass(rows[idx], this.oddCss);
|
||||
Dom.removeClass(rows[idx], this.evenCss);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all alternating backgrounds
|
||||
*/
|
||||
remove() {
|
||||
if(!this.tf.hasGrid()){
|
||||
return;
|
||||
}
|
||||
for(var i=this.tf.refRow; i<this.tf.nbRows; i++){
|
||||
this.removeRowBg(i);
|
||||
}
|
||||
}
|
||||
|
||||
enable() {
|
||||
this.tf.alternateBgs = true;
|
||||
}
|
||||
|
||||
disable() {
|
||||
this.tf.alternateBgs = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,504 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/checkList.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/checkList.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../dom';
|
||||
import Arr from '../array';
|
||||
import Str from '../string';
|
||||
import Sort from '../sort';
|
||||
import Event from '../event';
|
||||
|
||||
export class CheckList{
|
||||
|
||||
/**
|
||||
* Checklist UI component
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf){
|
||||
// Configuration object
|
||||
var f = tf.config();
|
||||
|
||||
this.checkListDiv = []; //checklist container div
|
||||
//defines css class for div containing checklist filter
|
||||
this.checkListDivCssClass = f.div_checklist_css_class ||
|
||||
'div_checklist';
|
||||
//defines css class for checklist filters
|
||||
this.checkListCssClass = f.checklist_css_class || 'flt_checklist';
|
||||
//defines css class for checklist item (li)
|
||||
this.checkListItemCssClass = f.checklist_item_css_class ||
|
||||
'flt_checklist_item';
|
||||
//defines css class for selected checklist item (li)
|
||||
this.checkListSlcItemCssClass = f.checklist_selected_item_css_class ||
|
||||
'flt_checklist_slc_item';
|
||||
//Load on demand text
|
||||
this.activateCheckListTxt = f.activate_checklist_text ||
|
||||
'Click to load filter data';
|
||||
//defines css class for checklist filters
|
||||
this.checkListItemDisabledCssClass =
|
||||
f.checklist_item_disabled_css_class ||
|
||||
'flt_checklist_item_disabled';
|
||||
this.enableCheckListResetFilter =
|
||||
f.enable_checklist_reset_filter===false ? false : true;
|
||||
//checklist filter container div
|
||||
this.prfxCheckListDiv = 'chkdiv_';
|
||||
|
||||
this.isCustom = null;
|
||||
this.opts = null;
|
||||
this.optsTxt = null;
|
||||
this.excludedOpts = null;
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
// TODO: move event here
|
||||
onChange(evt){
|
||||
let elm = evt.target;
|
||||
this.tf.activeFilterId = elm.getAttribute('id');
|
||||
this.tf.activeFlt = Dom.id(this.tf.activeFilterId);
|
||||
this.tf.Evt.onSlcChange.call(this.tf, evt);
|
||||
}
|
||||
|
||||
optionClick(evt){
|
||||
this.setCheckListValues(evt.target);
|
||||
this.onChange(evt);
|
||||
}
|
||||
|
||||
/**
|
||||
* Build checklist UI asynchronously
|
||||
* @param {Number} colIndex Column index
|
||||
* @param {Boolean} isExternal Render in external container
|
||||
* @param {String} extFltId External container id
|
||||
*/
|
||||
build(colIndex, isExternal, extFltId){
|
||||
var tf = this.tf;
|
||||
tf.EvtManager(
|
||||
tf.Evt.name.checklist,
|
||||
{ slcIndex:colIndex, slcExternal:isExternal, slcId:extFltId }
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Build checklist UI
|
||||
* @param {Number} colIndex Column index
|
||||
* @param {Boolean} isExternal Render in external container
|
||||
* @param {String} extFltId External container id
|
||||
*/
|
||||
_build(colIndex, isExternal=false, extFltId=null){
|
||||
var tf = this.tf;
|
||||
colIndex = parseInt(colIndex, 10);
|
||||
|
||||
this.opts = [];
|
||||
this.optsTxt = [];
|
||||
|
||||
var divFltId = this.prfxCheckListDiv+colIndex+'_'+tf.id;
|
||||
if((!Dom.id(divFltId) && !isExternal) ||
|
||||
(!Dom.id(extFltId) && isExternal)){
|
||||
return;
|
||||
}
|
||||
|
||||
var flt = !isExternal ? this.checkListDiv[colIndex] : Dom.id(extFltId);
|
||||
var ul = Dom.create(
|
||||
'ul', ['id', tf.fltIds[colIndex]], ['colIndex', colIndex]);
|
||||
ul.className = this.checkListCssClass;
|
||||
Event.add(ul, 'change', (evt) => { this.onChange(evt); });
|
||||
|
||||
var rows = tf.tbl.rows;
|
||||
this.isCustom = tf.isCustomOptions(colIndex);
|
||||
|
||||
var activeFlt;
|
||||
if(tf.linkedFilters && tf.activeFilterId){
|
||||
activeFlt = tf.activeFilterId.split('_')[0];
|
||||
activeFlt = activeFlt.split(tf.prfxFlt)[1];
|
||||
}
|
||||
|
||||
var filteredDataCol = [];
|
||||
if(tf.linkedFilters && tf.disableExcludedOptions){
|
||||
this.excludedOpts = [];
|
||||
}
|
||||
|
||||
for(var k=tf.refRow; k<tf.nbRows; k++){
|
||||
// always visible rows don't need to appear on selects as always
|
||||
// valid
|
||||
if(tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1){
|
||||
continue;
|
||||
}
|
||||
|
||||
var cells = rows[k].cells;
|
||||
var ncells = cells.length;
|
||||
|
||||
// checks if row has exact cell #
|
||||
if(ncells !== tf.nbCells || this.isCustom){
|
||||
continue;
|
||||
}
|
||||
|
||||
// this loop retrieves cell data
|
||||
for(var j=0; j<ncells; j++){
|
||||
// WTF: cyclomatic complexity hell :)
|
||||
if((colIndex===j && (!tf.linkedFilters ||
|
||||
(tf.linkedFilters && tf.disableExcludedOptions)))||
|
||||
(colIndex===j && tf.linkedFilters &&
|
||||
((rows[k].style.display === '' && !tf.paging) ||
|
||||
(tf.paging && ((!activeFlt || activeFlt===colIndex )||
|
||||
(activeFlt!=colIndex &&
|
||||
Arr.has(tf.validRowsIndex, k))) )))){
|
||||
var cell_data = tf.getCellData(j, cells[j]);
|
||||
//Vary Peter's patch
|
||||
var cell_string = Str.matchCase(
|
||||
cell_data, tf.matchCase);
|
||||
// checks if celldata is already in array
|
||||
if(!Arr.has(this.opts, cell_string, tf.matchCase)){
|
||||
this.opts.push(cell_data);
|
||||
}
|
||||
var filteredCol = filteredDataCol[j];
|
||||
if(tf.linkedFilters && tf.disableExcludedOptions){
|
||||
if(!filteredCol){
|
||||
filteredCol = tf.getFilteredDataCol(j);
|
||||
}
|
||||
if(!Arr.has(filteredCol,
|
||||
cell_string, tf.matchCase) &&
|
||||
!Arr.has(this.excludedOpts,
|
||||
cell_string, tf.matchCase) &&
|
||||
!tf.isFirstLoad){
|
||||
this.excludedOpts.push(cell_data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Retrieves custom values
|
||||
if(this.isCustom){
|
||||
var customValues = tf.getCustomOptions(colIndex);
|
||||
this.opts = customValues[0];
|
||||
this.optsTxt = customValues[1];
|
||||
}
|
||||
|
||||
if(tf.sortSlc && !this.isCustom){
|
||||
if (!tf.matchCase){
|
||||
this.opts.sort(Sort.ignoreCase);
|
||||
if(this.excludedOpts){
|
||||
this.excludedOpts.sort(Sort.ignoreCase);
|
||||
}
|
||||
} else {
|
||||
this.opts.sort();
|
||||
if(this.excludedOpts){
|
||||
this.excludedOpts.sort();
|
||||
}
|
||||
}
|
||||
}
|
||||
//asc sort
|
||||
if(tf.sortNumAsc && Arr.has(tf.sortNumAsc, colIndex)){
|
||||
try{
|
||||
this.opts.sort(numSortAsc);
|
||||
if(this.excludedOpts){
|
||||
this.excludedOpts.sort(numSortAsc);
|
||||
}
|
||||
if(this.isCustom){
|
||||
this.optsTxt.sort(numSortAsc);
|
||||
}
|
||||
} catch(e) {
|
||||
this.opts.sort();
|
||||
if(this.excludedOpts){
|
||||
this.excludedOpts.sort();
|
||||
}
|
||||
if(this.isCustom){
|
||||
this.optsTxt.sort();
|
||||
}
|
||||
}//in case there are alphanumeric values
|
||||
}
|
||||
//desc sort
|
||||
if(tf.sortNumDesc && Arr.has(tf.sortNumDesc, colIndex)){
|
||||
try{
|
||||
this.opts.sort(numSortDesc);
|
||||
if(this.excludedOpts){
|
||||
this.excludedOpts.sort(numSortDesc);
|
||||
}
|
||||
if(this.isCustom){
|
||||
this.optsTxt.sort(numSortDesc);
|
||||
}
|
||||
} catch(e) {
|
||||
this.opts.sort();
|
||||
if(this.excludedOpts){
|
||||
this.excludedOpts.sort(); }
|
||||
if(this.isCustom){
|
||||
this.optsTxt.sort();
|
||||
}
|
||||
}//in case there are alphanumeric values
|
||||
}
|
||||
|
||||
this.addChecks(colIndex, ul, tf.separator);
|
||||
|
||||
if(tf.fillSlcOnDemand){
|
||||
flt.innerHTML = '';
|
||||
}
|
||||
flt.appendChild(ul);
|
||||
flt.setAttribute('filled', '1');
|
||||
}
|
||||
|
||||
/**
|
||||
* Add checklist options
|
||||
* @param {Number} colIndex Column index
|
||||
* @param {Object} ul Ul element
|
||||
*/
|
||||
addChecks(colIndex, ul){
|
||||
var tf = this.tf;
|
||||
var chkCt = this.addTChecks(colIndex, ul);
|
||||
var fltArr = []; //remember grid values
|
||||
var store = tf.feature('store');
|
||||
var tmpVal = store ?
|
||||
store.getFilterValues(tf.fltsValuesCookie)[colIndex] : null;
|
||||
if(tmpVal && Str.trim(tmpVal).length > 0){
|
||||
if(tf.hasCustomSlcOptions &&
|
||||
Arr.has(tf.customSlcOptions.cols, colIndex)){
|
||||
fltArr.push(tmpVal);
|
||||
} else {
|
||||
fltArr = tmpVal.split(' '+tf.orOperator+' ');
|
||||
}
|
||||
}
|
||||
|
||||
for(var y=0; y<this.opts.length; y++){
|
||||
var val = this.opts[y]; //item value
|
||||
var lbl = this.isCustom ? this.optsTxt[y] : val; //item text
|
||||
var li = Dom.createCheckItem(
|
||||
tf.fltIds[colIndex]+'_'+(y+chkCt), val, lbl);
|
||||
li.className = this.checkListItemCssClass;
|
||||
if(tf.linkedFilters && tf.disableExcludedOptions &&
|
||||
Arr.has(this.excludedOpts,
|
||||
Str.matchCase(val, tf.matchCase), tf.matchCase)){
|
||||
Dom.addClass(li, this.checkListItemDisabledCssClass);
|
||||
li.check.disabled = true;
|
||||
li.disabled = true;
|
||||
} else {
|
||||
Event.add(li.check, 'click',
|
||||
(evt) => { this.optionClick(evt); });
|
||||
}
|
||||
ul.appendChild(li);
|
||||
|
||||
if(val===''){
|
||||
//item is hidden
|
||||
li.style.display = 'none';
|
||||
}
|
||||
|
||||
/*** remember grid values ***/
|
||||
if(tf.rememberGridValues){
|
||||
if((tf.hasCustomSlcOptions &&
|
||||
Arr.has(tf.customSlcOptions.cols, colIndex) &&
|
||||
fltArr.toString().indexOf(val)!= -1) ||
|
||||
Arr.has(fltArr,
|
||||
Str.matchCase(val, tf.matchCase), tf.matchCase)){
|
||||
li.check.checked = true;
|
||||
this.setCheckListValues(li.check);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add checklist header option
|
||||
* @param {Number} colIndex Column index
|
||||
* @param {Object} ul Ul element
|
||||
*/
|
||||
addTChecks(colIndex, ul){
|
||||
var tf = this.tf;
|
||||
var chkCt = 1;
|
||||
var li0 = Dom.createCheckItem(
|
||||
tf.fltIds[colIndex]+'_0', '', tf.displayAllText);
|
||||
li0.className = this.checkListItemCssClass;
|
||||
ul.appendChild(li0);
|
||||
|
||||
Event.add(li0.check, 'click', (evt) => {
|
||||
this.optionClick(evt);
|
||||
});
|
||||
|
||||
if(!this.enableCheckListResetFilter){
|
||||
li0.style.display = 'none';
|
||||
}
|
||||
|
||||
if(tf.enableEmptyOption){
|
||||
var li1 = Dom.createCheckItem(
|
||||
tf.fltIds[colIndex]+'_1', tf.emOperator, tf.emptyText);
|
||||
li1.className = this.checkListItemCssClass;
|
||||
ul.appendChild(li1);
|
||||
Event.add(li1.check, 'click', (evt) => {
|
||||
this.optionClick(evt);
|
||||
});
|
||||
chkCt++;
|
||||
}
|
||||
|
||||
if(tf.enableNonEmptyOption){
|
||||
var li2 = Dom.createCheckItem(
|
||||
tf.fltIds[colIndex]+'_2',
|
||||
tf.nmOperator,
|
||||
tf.nonEmptyText
|
||||
);
|
||||
li2.className = this.checkListItemCssClass;
|
||||
ul.appendChild(li2);
|
||||
Event.add(li2.check, 'click', (evt) => {
|
||||
this.optionClick(evt);
|
||||
});
|
||||
chkCt++;
|
||||
}
|
||||
return chkCt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Store checked options in DOM element attribute
|
||||
* @param {Object} o checklist option DOM element
|
||||
*/
|
||||
setCheckListValues(o){
|
||||
if(!o){
|
||||
return;
|
||||
}
|
||||
var tf = this.tf;
|
||||
var chkValue = o.value; //checked item value
|
||||
var chkIndex = parseInt(o.id.split('_')[2], 10);
|
||||
var filterTag = 'ul', itemTag = 'li';
|
||||
var n = o;
|
||||
|
||||
//ul tag search
|
||||
while(Str.lower(n.nodeName)!==filterTag){
|
||||
n = n.parentNode;
|
||||
}
|
||||
|
||||
var li = n.childNodes[chkIndex];
|
||||
var colIndex = n.getAttribute('colIndex');
|
||||
var fltValue = n.getAttribute('value'); //filter value (ul tag)
|
||||
var fltIndexes = n.getAttribute('indexes'); //selected items (ul tag)
|
||||
|
||||
if(o.checked){
|
||||
//show all item
|
||||
if(chkValue===''){
|
||||
if((fltIndexes && fltIndexes!=='')){
|
||||
//items indexes
|
||||
var indSplit = fltIndexes.split(tf.separator);
|
||||
//checked items loop
|
||||
for(var u=0; u<indSplit.length; u++){
|
||||
//checked item
|
||||
var cChk = Dom.id(tf.fltIds[colIndex]+'_'+indSplit[u]);
|
||||
if(cChk){
|
||||
cChk.checked = false;
|
||||
Dom.removeClass(
|
||||
n.childNodes[indSplit[u]],
|
||||
this.checkListSlcItemCssClass
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
n.setAttribute('value', '');
|
||||
n.setAttribute('indexes', '');
|
||||
|
||||
} else {
|
||||
fltValue = (fltValue) ? fltValue : '';
|
||||
chkValue = Str.trim(
|
||||
fltValue+' '+chkValue+' '+tf.orOperator);
|
||||
chkIndex = fltIndexes + chkIndex + tf.separator;
|
||||
n.setAttribute('value', chkValue );
|
||||
n.setAttribute('indexes', chkIndex);
|
||||
//1st option unchecked
|
||||
if(Dom.id(tf.fltIds[colIndex]+'_0')){
|
||||
Dom.id(tf.fltIds[colIndex]+'_0').checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
if(Str.lower(li.nodeName) === itemTag){
|
||||
Dom.removeClass(
|
||||
n.childNodes[0], this.checkListSlcItemCssClass);
|
||||
Dom.addClass(li, this.checkListSlcItemCssClass);
|
||||
}
|
||||
} else { //removes values and indexes
|
||||
if(chkValue!==''){
|
||||
var replaceValue = new RegExp(
|
||||
Str.rgxEsc(chkValue+' '+tf.orOperator));
|
||||
fltValue = fltValue.replace(replaceValue,'');
|
||||
n.setAttribute('value', Str.trim(fltValue));
|
||||
|
||||
var replaceIndex = new RegExp(
|
||||
Str.rgxEsc(chkIndex + tf.separator));
|
||||
fltIndexes = fltIndexes.replace(replaceIndex, '');
|
||||
n.setAttribute('indexes', fltIndexes);
|
||||
}
|
||||
if(Str.lower(li.nodeName)===itemTag){
|
||||
Dom.removeClass(li, this.checkListSlcItemCssClass);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,172 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/clearButton.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/clearButton.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../dom';
|
||||
import Event from '../event';
|
||||
|
||||
export class ClearButton{
|
||||
|
||||
/**
|
||||
* Clear button component
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf){
|
||||
// Configuration object
|
||||
var f = tf.config();
|
||||
|
||||
//id of container element
|
||||
this.btnResetTgtId = f.btn_reset_target_id || null;
|
||||
//reset button element
|
||||
this.btnResetEl = null;
|
||||
//defines reset text
|
||||
this.btnResetText = f.btn_reset_text || 'Reset';
|
||||
//defines reset button tooltip
|
||||
this.btnResetTooltip = f.btn_reset_tooltip || 'Clear filters';
|
||||
//defines reset button innerHtml
|
||||
this.btnResetHtml = f.btn_reset_html ||
|
||||
(!tf.enableIcons ? null :
|
||||
'<input type="button" value="" class="'+tf.btnResetCssClass+'" ' +
|
||||
'title="'+this.btnResetTooltip+'" />');
|
||||
//span containing reset button
|
||||
this.prfxResetSpan = 'resetspan_';
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
onClick(){
|
||||
this.tf.clearFilters();
|
||||
}
|
||||
|
||||
/**
|
||||
* Build DOM elements
|
||||
*/
|
||||
init(){
|
||||
var tf = this.tf;
|
||||
|
||||
if(!tf.hasGrid() && !tf.isFirstLoad && tf.btnResetEl){
|
||||
return;
|
||||
}
|
||||
|
||||
var resetspan = Dom.create('span', ['id', this.prfxResetSpan+tf.id]);
|
||||
|
||||
// reset button is added to defined element
|
||||
if(!this.btnResetTgtId){
|
||||
tf.setToolbar();
|
||||
}
|
||||
var targetEl = !this.btnResetTgtId ?
|
||||
tf.rDiv : Dom.id(this.btnResetTgtId);
|
||||
targetEl.appendChild(resetspan);
|
||||
|
||||
if(!this.btnResetHtml){
|
||||
var fltreset = Dom.create('a', ['href', 'javascript:void(0);']);
|
||||
fltreset.className = tf.btnResetCssClass;
|
||||
fltreset.appendChild(Dom.text(this.btnResetText));
|
||||
resetspan.appendChild(fltreset);
|
||||
// fltreset.onclick = this.Evt._Clear;
|
||||
Event.add(fltreset, 'click', () => { this.onClick(); });
|
||||
} else {
|
||||
resetspan.innerHTML = this.btnResetHtml;
|
||||
var resetEl = resetspan.firstChild;
|
||||
// resetEl.onclick = this.Evt._Clear;
|
||||
Event.add(resetEl, 'click', () => { this.onClick(); });
|
||||
}
|
||||
this.btnResetEl = resetspan.firstChild;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove clear button UI
|
||||
*/
|
||||
destroy(){
|
||||
var tf = this.tf;
|
||||
|
||||
if(!tf.hasGrid() || !this.btnResetEl){
|
||||
return;
|
||||
}
|
||||
|
||||
var resetspan = Dom.id(tf.prfxResetSpan+tf.id);
|
||||
if(resetspan){
|
||||
resetspan.parentNode.removeChild(resetspan);
|
||||
}
|
||||
this.btnResetEl = null;
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,425 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/dropdown.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/dropdown.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../dom';
|
||||
import Arr from '../array';
|
||||
import Str from '../string';
|
||||
import Sort from '../sort';
|
||||
|
||||
export class Dropdown{
|
||||
|
||||
/**
|
||||
* Dropdown UI component
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf){
|
||||
// Configuration object
|
||||
var f = tf.config();
|
||||
|
||||
this.enableSlcResetFilter = f.enable_slc_reset_filter===false ?
|
||||
false : true;
|
||||
//defines empty option text
|
||||
this.nonEmptyText = f.non_empty_text || '(Non empty)';
|
||||
//sets select filling method: 'innerHTML' or 'createElement'
|
||||
this.slcFillingMethod = f.slc_filling_method || 'createElement';
|
||||
//IE only, tooltip text appearing on select before it is populated
|
||||
this.activateSlcTooltip = f.activate_slc_tooltip ||
|
||||
'Click to activate';
|
||||
//tooltip text appearing on multiple select
|
||||
this.multipleSlcTooltip = f.multiple_slc_tooltip ||
|
||||
'Use Ctrl key for multiple selections';
|
||||
|
||||
this.isCustom = null;
|
||||
this.opts = null;
|
||||
this.optsTxt = null;
|
||||
this.slcInnerHtml = null;
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build drop-down filter UI asynchronously
|
||||
* @param {Number} colIndex Column index
|
||||
* @param {Boolean} isLinked Enable linked refresh behaviour
|
||||
* @param {Boolean} isExternal Render in external container
|
||||
* @param {String} extSlcId External container id
|
||||
*/
|
||||
build(colIndex, isLinked, isExternal, extSlcId){
|
||||
var tf = this.tf;
|
||||
tf.EvtManager(
|
||||
tf.Evt.name.dropdown,
|
||||
{
|
||||
slcIndex: colIndex,
|
||||
slcRefreshed: isLinked,
|
||||
slcExternal: isExternal,
|
||||
slcId: extSlcId
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Build drop-down filter UI
|
||||
* @param {Number} colIndex Column index
|
||||
* @param {Boolean} isLinked Enable linked refresh behaviour
|
||||
* @param {Boolean} isExternal Render in external container
|
||||
* @param {String} extSlcId External container id
|
||||
*/
|
||||
_build(colIndex, isLinked=false, isExternal=false, extSlcId=null){
|
||||
var tf = this.tf;
|
||||
colIndex = parseInt(colIndex, 10);
|
||||
|
||||
this.opts = [];
|
||||
this.optsTxt = [];
|
||||
this.slcInnerHtml = '';
|
||||
|
||||
var slcId = tf.fltIds[colIndex];
|
||||
if((!Dom.id(slcId) && !isExternal) ||
|
||||
(!Dom.id(extSlcId) && isExternal)){
|
||||
return;
|
||||
}
|
||||
var slc = !isExternal ? Dom.id(slcId) : Dom.id(extSlcId),
|
||||
rows = tf.tbl.rows,
|
||||
matchCase = tf.matchCase;
|
||||
|
||||
//custom select test
|
||||
this.isCustom = tf.isCustomOptions(colIndex);
|
||||
|
||||
//custom selects text
|
||||
var activeFlt;
|
||||
if(isLinked && tf.activeFilterId){
|
||||
activeFlt = tf.activeFilterId.split('_')[0];
|
||||
activeFlt = activeFlt.split(tf.prfxFlt)[1];
|
||||
}
|
||||
|
||||
/*** remember grid values ***/
|
||||
var fltsValues = [], fltArr = [];
|
||||
if(tf.rememberGridValues){
|
||||
fltsValues =
|
||||
tf.feature('store').getFilterValues(tf.fltsValuesCookie);
|
||||
if(fltsValues && !Str.isEmpty(fltsValues.toString())){
|
||||
if(this.isCustom){
|
||||
fltArr.push(fltsValues[colIndex]);
|
||||
} else {
|
||||
fltArr = fltsValues[colIndex].split(' '+tf.orOperator+' ');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var excludedOpts = null,
|
||||
filteredDataCol = null;
|
||||
if(isLinked && tf.disableExcludedOptions){
|
||||
excludedOpts = [];
|
||||
filteredDataCol = [];
|
||||
}
|
||||
|
||||
for(var k=tf.refRow; k<tf.nbRows; k++){
|
||||
// always visible rows don't need to appear on selects as always
|
||||
// valid
|
||||
if(tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1){
|
||||
continue;
|
||||
}
|
||||
|
||||
var cell = rows[k].cells,
|
||||
nchilds = cell.length;
|
||||
|
||||
// checks if row has exact cell #
|
||||
if(nchilds !== tf.nbCells || this.isCustom){
|
||||
continue;
|
||||
}
|
||||
|
||||
// this loop retrieves cell data
|
||||
for(var j=0; j<nchilds; j++){
|
||||
// WTF: cyclomatic complexity hell
|
||||
if((colIndex===j &&
|
||||
(!isLinked ||
|
||||
(isLinked && tf.disableExcludedOptions))) ||
|
||||
(colIndex==j && isLinked &&
|
||||
((rows[k].style.display === '' && !tf.paging) ||
|
||||
(tf.paging && (!tf.validRowsIndex ||
|
||||
(tf.validRowsIndex &&
|
||||
Arr.has(tf.validRowsIndex, k))) &&
|
||||
((activeFlt===undefined || activeFlt==colIndex) ||
|
||||
(activeFlt!=colIndex &&
|
||||
Arr.has(tf.validRowsIndex, k) ))) ))){
|
||||
var cell_data = tf.getCellData(j, cell[j]),
|
||||
//Vary Peter's patch
|
||||
cell_string = Str.matchCase(cell_data, matchCase);
|
||||
|
||||
// checks if celldata is already in array
|
||||
if(!Arr.has(this.opts, cell_string, matchCase)){
|
||||
this.opts.push(cell_data);
|
||||
}
|
||||
|
||||
if(isLinked && tf.disableExcludedOptions){
|
||||
var filteredCol = filteredDataCol[j];
|
||||
if(!filteredCol){
|
||||
filteredCol = tf.getFilteredDataCol(j);
|
||||
}
|
||||
if(!Arr.has(filteredCol, cell_string, matchCase) &&
|
||||
!Arr.has(
|
||||
excludedOpts, cell_string, matchCase) &&
|
||||
!this.isFirstLoad){
|
||||
excludedOpts.push(cell_data);
|
||||
}
|
||||
}
|
||||
}//if colIndex==j
|
||||
}//for j
|
||||
}//for k
|
||||
|
||||
//Retrieves custom values
|
||||
if(this.isCustom){
|
||||
var customValues = tf.getCustomOptions(colIndex);
|
||||
this.opts = customValues[0];
|
||||
this.optsTxt = customValues[1];
|
||||
}
|
||||
|
||||
if(tf.sortSlc && !this.isCustom){
|
||||
if (!matchCase){
|
||||
this.opts.sort(Sort.ignoreCase);
|
||||
if(excludedOpts){
|
||||
excludedOpts.sort(Sort.ignoreCase);
|
||||
}
|
||||
} else {
|
||||
this.opts.sort();
|
||||
if(excludedOpts){ excludedOpts.sort(); }
|
||||
}
|
||||
}
|
||||
|
||||
//asc sort
|
||||
if(tf.sortNumAsc && Arr.has(tf.sortNumAsc, colIndex)){
|
||||
try{
|
||||
this.opts.sort( numSortAsc );
|
||||
if(excludedOpts){
|
||||
excludedOpts.sort(numSortAsc);
|
||||
}
|
||||
if(this.isCustom){
|
||||
this.optsTxt.sort(numSortAsc);
|
||||
}
|
||||
} catch(e) {
|
||||
this.opts.sort();
|
||||
if(excludedOpts){
|
||||
excludedOpts.sort();
|
||||
}
|
||||
if(this.isCustom){
|
||||
this.optsTxt.sort();
|
||||
}
|
||||
}//in case there are alphanumeric values
|
||||
}
|
||||
//desc sort
|
||||
if(tf.sortNumDesc && Arr.has(tf.sortNumDesc, colIndex)){
|
||||
try{
|
||||
this.opts.sort(numSortDesc);
|
||||
if(excludedOpts){
|
||||
excludedOpts.sort(numSortDesc);
|
||||
}
|
||||
if(this.isCustom){
|
||||
this.optsTxt.sort(numSortDesc);
|
||||
}
|
||||
} catch(e) {
|
||||
this.opts.sort();
|
||||
if(excludedOpts){
|
||||
excludedOpts.sort();
|
||||
}
|
||||
if(this.isCustom){
|
||||
this.optsTxt.sort();
|
||||
}
|
||||
}//in case there are alphanumeric values
|
||||
}
|
||||
|
||||
//populates drop-down
|
||||
this.addOptions(
|
||||
colIndex, slc, isLinked, excludedOpts, fltsValues, fltArr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add drop-down options
|
||||
* @param {Number} colIndex Column index
|
||||
* @param {Object} slc Select Dom element
|
||||
* @param {Boolean} isLinked Enable linked refresh behaviour
|
||||
* @param {Array} excludedOpts Array of excluded options
|
||||
* @param {Array} fltsValues Collection of persisted filter values
|
||||
* @param {Array} fltArr Collection of persisted filter values
|
||||
*/
|
||||
addOptions(colIndex, slc, isLinked, excludedOpts, fltsValues, fltArr){
|
||||
var tf = this.tf,
|
||||
fillMethod = Str.lower(this.slcFillingMethod),
|
||||
slcValue = slc.value;
|
||||
|
||||
slc.innerHTML = '';
|
||||
slc = this.addFirstOption(slc);
|
||||
|
||||
for(var y=0; y<this.opts.length; y++){
|
||||
if(this.opts[y]===''){
|
||||
continue;
|
||||
}
|
||||
var val = this.opts[y]; //option value
|
||||
var lbl = this.isCustom ? this.optsTxt[y] : val; //option text
|
||||
var isDisabled = false;
|
||||
if(isLinked && tf.disableExcludedOptions &&
|
||||
Arr.has(
|
||||
excludedOpts,
|
||||
Str.matchCase(val, tf.matchCase),
|
||||
tf.matchCase
|
||||
)){
|
||||
isDisabled = true;
|
||||
}
|
||||
|
||||
if(fillMethod === 'innerhtml'){
|
||||
var slcAttr = '';
|
||||
if(tf.fillSlcOnDemand && slcValue===this.opts[y]){
|
||||
slcAttr = 'selected="selected"';
|
||||
}
|
||||
this.slcInnerHtml += '<option value="'+val+'" ' + slcAttr +
|
||||
(isDisabled ? 'disabled="disabled"' : '')+ '>' +
|
||||
lbl+'</option>';
|
||||
} else {
|
||||
var opt;
|
||||
//fill select on demand
|
||||
if(tf.fillSlcOnDemand && slcValue===this.opts[y] &&
|
||||
tf['col'+colIndex]===tf.fltTypeSlc){
|
||||
opt = Dom.createOpt(lbl, val, true);
|
||||
} else {
|
||||
if(tf['col'+colIndex]!==tf.fltTypeMulti){
|
||||
opt = Dom.createOpt(
|
||||
lbl,
|
||||
val,
|
||||
(fltsValues[colIndex]!==' ' &&
|
||||
val===fltsValues[colIndex]) ? true : false
|
||||
);
|
||||
} else {
|
||||
opt = Dom.createOpt(
|
||||
lbl,
|
||||
val,
|
||||
(Arr.has(fltArr,
|
||||
Str.matchCase(this.opts[y], tf.matchCase),
|
||||
tf.matchCase) ||
|
||||
fltArr.toString().indexOf(val)!== -1) ?
|
||||
true : false
|
||||
);
|
||||
}
|
||||
}
|
||||
if(isDisabled){
|
||||
opt.disabled = true;
|
||||
}
|
||||
slc.appendChild(opt);
|
||||
}
|
||||
}// for y
|
||||
|
||||
if(fillMethod === 'innerhtml'){
|
||||
slc.innerHTML += this.slcInnerHtml;
|
||||
}
|
||||
slc.setAttribute('filled', '1');
|
||||
}
|
||||
|
||||
/**
|
||||
* Add drop-down header option
|
||||
* @param {Object} slc Select DOM element
|
||||
*/
|
||||
addFirstOption(slc){
|
||||
var tf = this.tf,
|
||||
fillMethod = Str.lower(this.slcFillingMethod);
|
||||
|
||||
if(fillMethod === 'innerhtml'){
|
||||
this.slcInnerHtml += '<option value="">'+ tf.displayAllText +
|
||||
'</option>';
|
||||
}
|
||||
else {
|
||||
var opt0 = Dom.createOpt(
|
||||
(!this.enableSlcResetFilter ? '' : tf.displayAllText),'');
|
||||
if(!this.enableSlcResetFilter){
|
||||
opt0.style.display = 'none';
|
||||
}
|
||||
slc.appendChild(opt0);
|
||||
if(tf.enableEmptyOption){
|
||||
var opt1 = Dom.createOpt(tf.emptyText, tf.emOperator);
|
||||
slc.appendChild(opt1);
|
||||
}
|
||||
if(tf.enableNonEmptyOption){
|
||||
var opt2 = Dom.createOpt(tf.nonEmptyText, tf.nmOperator);
|
||||
slc.appendChild(opt2);
|
||||
}
|
||||
}
|
||||
return slc;
|
||||
}
|
||||
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,439 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/gridLayout.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/gridLayout.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../dom';
|
||||
import Types from '../types';
|
||||
import Event from '../event';
|
||||
|
||||
export class GridLayout{
|
||||
|
||||
/**
|
||||
* Grid layout, table with fixed headers
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf) {
|
||||
var f = tf.config();
|
||||
|
||||
//defines grid width
|
||||
this.gridWidth = f.grid_width || null;
|
||||
//defines grid height
|
||||
this.gridHeight = f.grid_height || null;
|
||||
//defines css class for main container
|
||||
this.gridMainContCssClass = f.grid_cont_css_class || 'grd_Cont';
|
||||
//defines css class for div containing table
|
||||
this.gridContCssClass = f.grid_tbl_cont_css_class || 'grd_tblCont';
|
||||
//defines css class for div containing headers' table
|
||||
this.gridHeadContCssClass = f.grid_tblHead_cont_css_class ||
|
||||
'grd_headTblCont';
|
||||
//defines css class for div containing rows counter, paging etc.
|
||||
this.gridInfDivCssClass = f.grid_inf_grid_css_class || 'grd_inf';
|
||||
//defines which row contains column headers
|
||||
this.gridHeadRowIndex = f.grid_headers_row_index || 0;
|
||||
//array of headers row indexes to be placed in header table
|
||||
this.gridHeadRows = f.grid_headers_rows || [0];
|
||||
//generate filters in table headers
|
||||
this.gridEnableFilters = f.grid_enable_default_filters!==undefined ?
|
||||
f.grid_enable_default_filters : true;
|
||||
//default col width
|
||||
this.gridDefaultColWidth = f.grid_default_col_width || '100px';
|
||||
//enables/disables columns resizer
|
||||
// this.gridEnableColResizer = f.grid_enable_cols_resizer!==undefined ?
|
||||
// f.grid_enable_cols_resizer : false;
|
||||
// //defines col resizer script path
|
||||
// this.gridColResizerPath = f.grid_cont_col_resizer_path ||
|
||||
// this.basePath+'TFExt_ColsResizer/TFExt_ColsResizer.js';
|
||||
|
||||
this.gridColElms = [];
|
||||
|
||||
//div containing grid elements if grid_layout true
|
||||
this.prfxMainTblCont = 'gridCont_';
|
||||
//div containing table if grid_layout true
|
||||
this.prfxTblCont = 'tblCont_';
|
||||
//div containing headers table if grid_layout true
|
||||
this.prfxHeadTblCont = 'tblHeadCont_';
|
||||
//headers' table if grid_layout true
|
||||
this.prfxHeadTbl = 'tblHead_';
|
||||
//id of td containing the filter if grid_layout true
|
||||
this.prfxGridFltTd = '_td_';
|
||||
//id of th containing column header if grid_layout true
|
||||
this.prfxGridTh = 'tblHeadTh_';
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a grid with fixed headers
|
||||
*/
|
||||
init(){
|
||||
var tf = this.tf;
|
||||
var f = tf.config();
|
||||
var tbl = tf.tbl;
|
||||
|
||||
if(!tf.gridLayout){
|
||||
return;
|
||||
}
|
||||
|
||||
tf.isExternalFlt = true;
|
||||
|
||||
// default width of 100px if column widths not set
|
||||
if(!tf.hasColWidths){
|
||||
tf.colWidths = [];
|
||||
for(var k=0; k<tf.nbCells; k++){
|
||||
var colW,
|
||||
cell = tbl.rows[this.gridHeadRowIndex].cells[k];
|
||||
if(cell.width !== ''){
|
||||
colW = cell.width;
|
||||
} else if(cell.style.width !== ''){
|
||||
colW = parseInt(cell.style.width, 10);
|
||||
} else {
|
||||
colW = this.gridDefaultColWidth;
|
||||
}
|
||||
tf.colWidths[k] = colW;
|
||||
}
|
||||
tf.hasColWidths = true;
|
||||
}
|
||||
tf.setColWidths(this.gridHeadRowIndex);
|
||||
|
||||
var tblW;//initial table width
|
||||
if(tbl.width !== ''){
|
||||
tblW = tbl.width;
|
||||
}
|
||||
else if(tbl.style.width !== ''){
|
||||
tblW = parseInt(tbl.style.width, 10);
|
||||
} else {
|
||||
tblW = tbl.clientWidth;
|
||||
}
|
||||
|
||||
//Main container: it will contain all the elements
|
||||
this.tblMainCont = Dom.create('div',
|
||||
['id', this.prfxMainTblCont + tf.id]);
|
||||
this.tblMainCont.className = this.gridMainContCssClass;
|
||||
if(this.gridWidth){
|
||||
this.tblMainCont.style.width = this.gridWidth;
|
||||
}
|
||||
tbl.parentNode.insertBefore(this.tblMainCont, tbl);
|
||||
|
||||
//Table container: div wrapping content table
|
||||
this.tblCont = Dom.create('div',['id', this.prfxTblCont + tf.id]);
|
||||
this.tblCont.className = this.gridContCssClass;
|
||||
if(this.gridWidth){
|
||||
if(this.gridWidth.indexOf('%') != -1){
|
||||
console.log(this.gridWidth);
|
||||
this.tblCont.style.width = '100%';
|
||||
} else {
|
||||
this.tblCont.style.width = this.gridWidth;
|
||||
}
|
||||
}
|
||||
if(this.gridHeight){
|
||||
this.tblCont.style.height = this.gridHeight;
|
||||
}
|
||||
tbl.parentNode.insertBefore(this.tblCont, tbl);
|
||||
var t = tbl.parentNode.removeChild(tbl);
|
||||
this.tblCont.appendChild(t);
|
||||
|
||||
//In case table width is expressed in %
|
||||
if(tbl.style.width === ''){
|
||||
tbl.style.width = (tf._containsStr('%', tblW) ?
|
||||
tbl.clientWidth : tblW) + 'px';
|
||||
}
|
||||
|
||||
var d = this.tblCont.parentNode.removeChild(this.tblCont);
|
||||
this.tblMainCont.appendChild(d);
|
||||
|
||||
//Headers table container: div wrapping headers table
|
||||
this.headTblCont = Dom.create(
|
||||
'div',['id', this.prfxHeadTblCont + tf.id]);
|
||||
this.headTblCont.className = this.gridHeadContCssClass;
|
||||
if(this.gridWidth){
|
||||
if(this.gridWidth.indexOf('%') != -1){
|
||||
console.log(this.gridWidth);
|
||||
this.headTblCont.style.width = '100%';
|
||||
} else {
|
||||
this.headTblCont.style.width = this.gridWidth;
|
||||
}
|
||||
}
|
||||
|
||||
//Headers table
|
||||
this.headTbl = Dom.create('table', ['id', this.prfxHeadTbl + tf.id]);
|
||||
var tH = Dom.create('tHead'); //IE<7 needs it
|
||||
|
||||
//1st row should be headers row, ids are added if not set
|
||||
//Those ids are used by the sort feature
|
||||
var hRow = tbl.rows[this.gridHeadRowIndex];
|
||||
var sortTriggers = [];
|
||||
for(var n=0; n<tf.nbCells; n++){
|
||||
var c = hRow.cells[n];
|
||||
var thId = c.getAttribute('id');
|
||||
if(!thId || thId===''){
|
||||
thId = this.prfxGridTh+n+'_'+tf.id;
|
||||
c.setAttribute('id', thId);
|
||||
}
|
||||
sortTriggers.push(thId);
|
||||
}
|
||||
|
||||
//Filters row is created
|
||||
var filtersRow = Dom.create('tr');
|
||||
if(this.gridEnableFilters && tf.fltGrid){
|
||||
tf.externalFltTgtIds = [];
|
||||
for(var j=0; j<tf.nbCells; j++){
|
||||
var fltTdId = tf.prfxFlt+j+ this.prfxGridFltTd +tf.id;
|
||||
var cl = Dom.create(tf.fltCellTag, ['id', fltTdId]);
|
||||
filtersRow.appendChild(cl);
|
||||
tf.externalFltTgtIds[j] = fltTdId;
|
||||
}
|
||||
}
|
||||
//Headers row are moved from content table to headers table
|
||||
for(var i=0; i<this.gridHeadRows.length; i++){
|
||||
var headRow = tbl.rows[this.gridHeadRows[0]];
|
||||
tH.appendChild(headRow);
|
||||
}
|
||||
this.headTbl.appendChild(tH);
|
||||
if(tf.filtersRowIndex === 0){
|
||||
tH.insertBefore(filtersRow,hRow);
|
||||
} else {
|
||||
tH.appendChild(filtersRow);
|
||||
}
|
||||
|
||||
this.headTblCont.appendChild(this.headTbl);
|
||||
this.tblCont.parentNode.insertBefore(this.headTblCont, this.tblCont);
|
||||
|
||||
//THead needs to be removed in content table for sort feature
|
||||
var thead = Dom.tag(tbl, 'thead');
|
||||
if(thead.length>0){
|
||||
tbl.removeChild(thead[0]);
|
||||
}
|
||||
|
||||
//Headers table style
|
||||
this.headTbl.style.tableLayout = 'fixed';
|
||||
tbl.style.tableLayout = 'fixed';
|
||||
this.headTbl.cellPadding = tbl.cellPadding;
|
||||
this.headTbl.cellSpacing = tbl.cellSpacing;
|
||||
// this.headTbl.style.width = tbl.style.width;
|
||||
|
||||
//content table without headers needs col widths to be reset
|
||||
tf.setColWidths(0, this.headTbl);
|
||||
|
||||
//Headers container width
|
||||
// this.headTblCont.style.width = this.tblCont.clientWidth+'px';
|
||||
|
||||
tbl.style.width = '';
|
||||
//
|
||||
this.headTbl.style.width = tbl.clientWidth + 'px';
|
||||
//
|
||||
|
||||
//scroll synchronisation
|
||||
Event.add(this.tblCont, 'scroll', (evt)=> {
|
||||
var elm = Event.target(evt);
|
||||
var scrollLeft = elm.scrollLeft;
|
||||
this.headTblCont.scrollLeft = scrollLeft;
|
||||
//New pointerX calc taking into account scrollLeft
|
||||
// if(!o.isPointerXOverwritten){
|
||||
// try{
|
||||
// o.Evt.pointerX = function(evt){
|
||||
// var e = evt || global.event;
|
||||
// var bdScrollLeft = tf_StandardBody().scrollLeft +
|
||||
// scrollLeft;
|
||||
// return (e.pageX + scrollLeft) ||
|
||||
// (e.clientX + bdScrollLeft);
|
||||
// };
|
||||
// o.isPointerXOverwritten = true;
|
||||
// } catch(err) {
|
||||
// o.isPointerXOverwritten = false;
|
||||
// }
|
||||
// }
|
||||
});
|
||||
|
||||
//Configure sort extension if any
|
||||
var sort = (f.extensions || []).filter(function(itm){
|
||||
return itm.name === 'sort';
|
||||
});
|
||||
if(sort.length === 1){
|
||||
sort[0].async_sort = true;
|
||||
sort[0].trigger_ids = sortTriggers;
|
||||
}
|
||||
|
||||
// if(this.gridEnableColResizer){
|
||||
// if(!tf.hasExtensions){
|
||||
// tf.extensions = {
|
||||
// name:['ColumnsResizer_'+tf.id],
|
||||
// src:[this.gridColResizerPath],
|
||||
// description:['Columns Resizing'],
|
||||
// initialize:[function(o){
|
||||
// o.SetColsResizer('ColumnsResizer_'+o.id);}]
|
||||
// };
|
||||
// tf.hasExtensions = true;
|
||||
// } else {
|
||||
// if(!tf._containsStr(
|
||||
// 'colsresizer',
|
||||
// Str.lower(tf.extensions.src.toString())) ){
|
||||
// tf.extensions.name.push('ColumnsResizer_'+tf.id);
|
||||
// tf.extensions.src.push(tf.gridColResizerPath);
|
||||
// tf.extensions.description.push('Columns Resizing');
|
||||
// tf.extensions.initialize.push(function(o){
|
||||
// o.SetColsResizer('ColumnsResizer_'+o.id);});
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
//Default columns resizer properties for grid layout
|
||||
// f.col_resizer_cols_headers_table = this.headTbl.getAttribute('id');
|
||||
// f.col_resizer_cols_headers_index = this.gridHeadRowIndex;
|
||||
// f.col_resizer_width_adjustment = 0;
|
||||
// f.col_enable_text_ellipsis = false;
|
||||
|
||||
//Cols generation for all browsers excepted IE<=7
|
||||
this.tblHasColTag = Dom.tag(tbl, 'col').length > 0 ? true : false;
|
||||
|
||||
//Col elements are enough to keep column widths after sorting and
|
||||
//filtering
|
||||
var createColTags = function(){
|
||||
for(var k=(tf.nbCells-1); k>=0; k--){
|
||||
var col = Dom.create('col', ['id', tf.id+'_col_'+k]);
|
||||
tbl.insertBefore(col, tbl.firstChild);
|
||||
col.style.width = tf.colWidths[k];
|
||||
this.gridColElms[k] = col;
|
||||
}
|
||||
this.tblHasColTag = true;
|
||||
};
|
||||
|
||||
if(!this.tblHasColTag){
|
||||
createColTags.call(this);
|
||||
} else {
|
||||
var cols = Dom.tag(tbl, 'col');
|
||||
for(var ii=0; ii<tf.nbCells; ii++){
|
||||
cols[ii].setAttribute('id', tf.id+'_col_'+ii);
|
||||
cols[ii].style.width = tf.colWidths[ii];
|
||||
this.gridColElms.push(cols[ii]);
|
||||
}
|
||||
}
|
||||
|
||||
var afterColResizedFn = Types.isFn(f.on_after_col_resized) ?
|
||||
f.on_after_col_resized : null;
|
||||
f.on_after_col_resized = function(o, colIndex){
|
||||
if(!colIndex){
|
||||
return;
|
||||
}
|
||||
var w = o.crWColsRow.cells[colIndex].style.width;
|
||||
var col = o.gridColElms[colIndex];
|
||||
col.style.width = w;
|
||||
|
||||
var thCW = o.crWColsRow.cells[colIndex].clientWidth;
|
||||
var tdCW = o.crWRowDataTbl.cells[colIndex].clientWidth;
|
||||
|
||||
if(thCW != tdCW){
|
||||
o.headTbl.style.width = tbl.clientWidth+'px';
|
||||
}
|
||||
|
||||
if(afterColResizedFn){
|
||||
afterColResizedFn.call(null,o,colIndex);
|
||||
}
|
||||
};
|
||||
|
||||
if(tbl.clientWidth !== this.headTbl.clientWidth){
|
||||
tbl.style.width = this.headTbl.clientWidth+'px';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the grid layout
|
||||
*/
|
||||
destroy(){
|
||||
var tf = this.tf;
|
||||
var tbl = tf.tbl;
|
||||
|
||||
if(!tf.gridLayout){
|
||||
return;
|
||||
}
|
||||
var t = tbl.parentNode.removeChild(tbl);
|
||||
this.tblMainCont.parentNode.insertBefore(t, this.tblMainCont);
|
||||
this.tblMainCont.parentNode.removeChild(this.tblMainCont);
|
||||
|
||||
this.tblMainCont = null;
|
||||
this.headTblCont = null;
|
||||
this.headTbl = null;
|
||||
this.tblCont = null;
|
||||
|
||||
tbl.outerHTML = tf.sourceTblHtml;
|
||||
//needed to keep reference of table element
|
||||
tbl = Dom.id(tf.id);
|
||||
}
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,231 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/help.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/help.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../dom';
|
||||
import Event from '../event';
|
||||
|
||||
export class Help{
|
||||
|
||||
/**
|
||||
* Help UI component
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf){
|
||||
// Configuration object
|
||||
var f = tf.config();
|
||||
|
||||
//id of custom container element for instructions
|
||||
this.tgtId = f.help_instructions_target_id || null;
|
||||
//id of custom container element for instructions
|
||||
this.contTgtId = f.help_instructions_container_target_id ||
|
||||
null;
|
||||
//defines help text
|
||||
this.instrText = f.help_instructions_text ?
|
||||
f.help_instructions_text :
|
||||
'Use the filters above each column to filter and limit table ' +
|
||||
'data. Avanced searches can be performed by using the following ' +
|
||||
'operators: <br /><b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, ' +
|
||||
'<b>&gt;=</b>, <b>=</b>, <b>*</b>, <b>!</b>, <b>{</b>, <b>}</b>, ' +
|
||||
'<b>||</b>,<b>&amp;&amp;</b>, <b>[empty]</b>, <b>[nonempty]</b>, ' +
|
||||
'<b>rgx:</b><br/>' +
|
||||
'<a href="https://github.com/koalyptus/TableFilter/wiki/' +
|
||||
'4.-Filter-operators" target="_blank">Learn more</a>.<hr/>';
|
||||
//defines help innerHtml
|
||||
this.instrHtml = f.help_instructions_html || null;
|
||||
//defines reset button text
|
||||
this.btnText = f.help_instructions_btn_text || '?';
|
||||
//defines reset button innerHtml
|
||||
this.btnHtml = f.help_instructions_btn_html || null;
|
||||
//defines css class for help button
|
||||
this.btnCssClass = f.help_instructions_btn_css_class || 'helpBtn';
|
||||
//defines css class for help container
|
||||
this.contCssClass = f.help_instructions_container_css_class ||
|
||||
'helpCont';
|
||||
//help button element
|
||||
this.btn = null;
|
||||
//help content div
|
||||
this.cont = null;
|
||||
this.defaultHtml = '<div class="helpFooter"><h4>TableFilter ' +
|
||||
'v. '+ tf.version +'</h4>' +
|
||||
'<a href="https://github.com/koalyptus/TableFilter/" ' +
|
||||
' target="_blank">https://github.com/koalyptus/TableFilter/</a>' +
|
||||
'<br/><span>&copy;2015-'+ tf.year +' Max Guglielmi.</span>' +
|
||||
'<div align="center" style="margin-top:8px;">' +
|
||||
'<a href="javascript:void(0);" class="close">Close</a></div></div>';
|
||||
|
||||
//id prefix for help elements
|
||||
this.prfxHelpSpan = 'helpSpan_';
|
||||
//id prefix for help elements
|
||||
this.prfxHelpDiv = 'helpDiv_';
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
init(){
|
||||
if(this.btn){
|
||||
return;
|
||||
}
|
||||
|
||||
var tf = this.tf;
|
||||
|
||||
var helpspan = Dom.create('span',['id', this.prfxHelpSpan+tf.id]);
|
||||
var helpdiv = Dom.create('div',['id', this.prfxHelpDiv+tf.id]);
|
||||
|
||||
//help button is added to defined element
|
||||
if(!this.tgtId){
|
||||
tf.setToolbar();
|
||||
}
|
||||
var targetEl = !this.tgtId ?
|
||||
tf.rDiv : Dom.id(this.tgtId);
|
||||
targetEl.appendChild(helpspan);
|
||||
|
||||
var divContainer = !this.contTgtId ?
|
||||
helpspan : Dom.id(this.contTgtId);
|
||||
|
||||
if(!this.btnHtml){
|
||||
divContainer.appendChild(helpdiv);
|
||||
var helplink = Dom.create('a', ['href', 'javascript:void(0);']);
|
||||
helplink.className = this.btnCssClass;
|
||||
helplink.appendChild(Dom.text(this.btnText));
|
||||
helpspan.appendChild(helplink);
|
||||
Event.add(helplink, 'click', () => { this.toggle(); });
|
||||
} else {
|
||||
helpspan.innerHTML = this.btnHtml;
|
||||
var helpEl = helpspan.firstChild;
|
||||
Event.add(helpEl, 'click', () => { this.toggle(); });
|
||||
divContainer.appendChild(helpdiv);
|
||||
}
|
||||
|
||||
if(!this.instrHtml){
|
||||
helpdiv.innerHTML = this.instrText;
|
||||
helpdiv.className = this.contCssClass;
|
||||
Event.add(helpdiv, 'dblclick', () => { this.toggle(); });
|
||||
} else {
|
||||
if(this.contTgtId){
|
||||
divContainer.appendChild(helpdiv);
|
||||
}
|
||||
helpdiv.innerHTML = this.instrHtml;
|
||||
if(!this.contTgtId){
|
||||
helpdiv.className = this.contCssClass;
|
||||
Event.add(helpdiv, 'dblclick', () => { this.toggle(); });
|
||||
}
|
||||
}
|
||||
helpdiv.innerHTML += this.defaultHtml;
|
||||
Event.add(helpdiv, 'click', () => { this.toggle(); });
|
||||
|
||||
this.cont = helpdiv;
|
||||
this.btn = helpspan;
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle help pop-up
|
||||
*/
|
||||
toggle(){
|
||||
if(!this.cont){
|
||||
return;
|
||||
}
|
||||
var divDisplay = this.cont.style.display;
|
||||
if(divDisplay === '' || divDisplay === 'none'){
|
||||
this.cont.style.display = 'inline';
|
||||
} else {
|
||||
this.cont.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove help UI
|
||||
*/
|
||||
destroy(){
|
||||
if(!this.btn){
|
||||
return;
|
||||
}
|
||||
this.btn.parentNode.removeChild(this.btn);
|
||||
this.btn = null;
|
||||
if(!this.cont){
|
||||
return;
|
||||
}
|
||||
this.cont.parentNode.removeChild(this.cont);
|
||||
this.cont = null;
|
||||
}
|
||||
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,190 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/highlightKeywords.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/highlightKeywords.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../dom';
|
||||
import Str from '../string';
|
||||
|
||||
export class HighlightKeyword{
|
||||
|
||||
/**
|
||||
* HighlightKeyword, highlight matched keyword
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf) {
|
||||
var f = tf.config();
|
||||
//defines css class for highlighting
|
||||
this.highlightCssClass = f.highlight_css_class || 'keyword';
|
||||
this.highlightedNodes = [];
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
/**
|
||||
* highlight occurences of searched term in passed node
|
||||
* @param {Node} node
|
||||
* @param {String} word Searched term
|
||||
* @param {String} cssClass Css class name
|
||||
*/
|
||||
highlight(node, word, cssClass){
|
||||
// Iterate into this nodes childNodes
|
||||
if(node.hasChildNodes){
|
||||
var children = node.childNodes;
|
||||
for(var i=0; i<children.length; i++){
|
||||
this.highlight(children[i], word, cssClass);
|
||||
}
|
||||
}
|
||||
|
||||
if(node.nodeType === 3){
|
||||
var tempNodeVal = Str.lower(node.nodeValue);
|
||||
var tempWordVal = Str.lower(word);
|
||||
if(tempNodeVal.indexOf(tempWordVal) != -1){
|
||||
var pn = node.parentNode;
|
||||
if(pn && pn.className != cssClass){
|
||||
// word not highlighted yet
|
||||
var nv = node.nodeValue,
|
||||
ni = tempNodeVal.indexOf(tempWordVal),
|
||||
// Create a load of replacement nodes
|
||||
before = Dom.text(nv.substr(0, ni)),
|
||||
docWordVal = nv.substr(ni,word.length),
|
||||
after = Dom.text(nv.substr(ni+word.length)),
|
||||
hiwordtext = Dom.text(docWordVal),
|
||||
hiword = Dom.create('span');
|
||||
hiword.className = cssClass;
|
||||
hiword.appendChild(hiwordtext);
|
||||
pn.insertBefore(before,node);
|
||||
pn.insertBefore(hiword,node);
|
||||
pn.insertBefore(after,node);
|
||||
pn.removeChild(node);
|
||||
this.highlightedNodes.push(hiword.firstChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes highlight to nodes matching passed string
|
||||
* @param {String} word
|
||||
* @param {String} cssClass Css class to remove
|
||||
*/
|
||||
unhighlight(word, cssClass){
|
||||
var arrRemove = [];
|
||||
var highlightedNodes = this.highlightedNodes;
|
||||
for(var i=0; i<highlightedNodes.length; i++){
|
||||
var n = highlightedNodes[i];
|
||||
if(!n){
|
||||
continue;
|
||||
}
|
||||
var tempNodeVal = Str.lower(n.nodeValue),
|
||||
tempWordVal = Str.lower(word);
|
||||
if(tempNodeVal.indexOf(tempWordVal) !== -1){
|
||||
var pn = n.parentNode;
|
||||
if(pn && pn.className === cssClass){
|
||||
var prevSib = pn.previousSibling,
|
||||
nextSib = pn.nextSibling;
|
||||
if(!prevSib || !nextSib){ continue; }
|
||||
nextSib.nodeValue = prevSib.nodeValue + n.nodeValue +
|
||||
nextSib.nodeValue;
|
||||
prevSib.nodeValue = '';
|
||||
n.nodeValue = '';
|
||||
arrRemove.push(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
for(var k=0; k<arrRemove.length; k++){
|
||||
highlightedNodes.splice(arrRemove[k], 1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear all occurrences of highlighted nodes
|
||||
*/
|
||||
unhighlightAll(){
|
||||
if(!this.tf.highlightKeywords || !this.tf.searchArgs){
|
||||
return;
|
||||
}
|
||||
for(var y=0; y<this.tf.searchArgs.length; y++){
|
||||
this.unhighlight(
|
||||
this.tf.searchArgs[y], this.highlightCssClass);
|
||||
}
|
||||
this.highlightedNodes = [];
|
||||
}
|
||||
}</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,175 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/loader.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/loader.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../dom';
|
||||
import Types from '../types';
|
||||
|
||||
var global = window;
|
||||
|
||||
export class Loader{
|
||||
|
||||
/**
|
||||
* Loading message/spinner
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf){
|
||||
|
||||
// TableFilter configuration
|
||||
var f = tf.config();
|
||||
//id of container element
|
||||
this.loaderTgtId = f.loader_target_id || null;
|
||||
//div containing loader
|
||||
this.loaderDiv = null;
|
||||
//defines loader text
|
||||
this.loaderText = f.loader_text || 'Loading...';
|
||||
//defines loader innerHtml
|
||||
this.loaderHtml = f.loader_html || null;
|
||||
//defines css class for loader div
|
||||
this.loaderCssClass = f.loader_css_class || 'loader';
|
||||
//delay for hiding loader
|
||||
this.loaderCloseDelay = 200;
|
||||
//callback function before loader is displayed
|
||||
this.onShowLoader = Types.isFn(f.on_show_loader) ?
|
||||
f.on_show_loader : null;
|
||||
//callback function after loader is closed
|
||||
this.onHideLoader = Types.isFn(f.on_hide_loader) ?
|
||||
f.on_hide_loader : null;
|
||||
//loader div
|
||||
this.prfxLoader = 'load_';
|
||||
|
||||
this.tf = tf;
|
||||
|
||||
var containerDiv = Dom.create('div', ['id', this.prfxLoader+tf.id]);
|
||||
containerDiv.className = this.loaderCssClass;
|
||||
|
||||
var targetEl = !this.loaderTgtId ?
|
||||
tf.tbl.parentNode : Dom.id(this.loaderTgtId);
|
||||
if(!this.loaderTgtId){
|
||||
targetEl.insertBefore(containerDiv, tf.tbl);
|
||||
} else {
|
||||
targetEl.appendChild(containerDiv);
|
||||
}
|
||||
this.loaderDiv = Dom.id(this.prfxLoader+tf.id);
|
||||
if(!this.loaderHtml){
|
||||
this.loaderDiv.appendChild(Dom.text(this.loaderText));
|
||||
} else {
|
||||
this.loaderDiv.innerHTML = this.loaderHtml;
|
||||
}
|
||||
}
|
||||
|
||||
show(p) {
|
||||
if(!this.tf.loader || !this.loaderDiv ||
|
||||
this.loaderDiv.style.display===p){
|
||||
return;
|
||||
}
|
||||
|
||||
var displayLoader = () => {
|
||||
if(!this.loaderDiv){
|
||||
return;
|
||||
}
|
||||
if(this.onShowLoader && p!=='none'){
|
||||
this.onShowLoader.call(null, this);
|
||||
}
|
||||
this.loaderDiv.style.display = p;
|
||||
if(this.onHideLoader && p==='none'){
|
||||
this.onHideLoader.call(null, this);
|
||||
}
|
||||
};
|
||||
|
||||
var t = p==='none' ? this.loaderCloseDelay : 1;
|
||||
global.setTimeout(displayLoader, t);
|
||||
}
|
||||
|
||||
destroy(){
|
||||
if(!this.loaderDiv){
|
||||
return;
|
||||
}
|
||||
var tf = this.tf,
|
||||
targetEl = !this.loaderTgtId ?
|
||||
(tf.gridLayout ?
|
||||
tf.feature('gridLayout').tblCont : tf.tbl.parentNode):
|
||||
Dom.id(this.loaderTgtId);
|
||||
targetEl.removeChild(this.loaderDiv);
|
||||
this.loaderDiv = null;
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,863 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/paging.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/paging.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../dom';
|
||||
import Types from '../types';
|
||||
import Str from '../string';
|
||||
import Event from '../event';
|
||||
|
||||
export class Paging{
|
||||
|
||||
/**
|
||||
* Pagination component
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf){
|
||||
// Configuration object
|
||||
var f = tf.config();
|
||||
|
||||
//css class for paging buttons (previous,next,etc.)
|
||||
this.btnPageCssClass = f.paging_btn_css_class || 'pgInp';
|
||||
//stores paging select element
|
||||
this.pagingSlc = null;
|
||||
//results per page select element
|
||||
this.resultsPerPageSlc = null;
|
||||
//id of container element
|
||||
this.pagingTgtId = f.paging_target_id || null;
|
||||
//defines table paging length
|
||||
this.pagingLength = !isNaN(f.paging_length) ? f.paging_length : 10;
|
||||
//id of container element
|
||||
this.resultsPerPageTgtId = f.results_per_page_target_id || null;
|
||||
//css class for paging select element
|
||||
this.pgSlcCssClass = f.paging_slc_css_class || 'pgSlc';
|
||||
//css class for paging input element
|
||||
this.pgInpCssClass = f.paging_inp_css_class || 'pgNbInp';
|
||||
//stores results per page text and values
|
||||
this.resultsPerPage = f.results_per_page || null;
|
||||
//enables/disables results per page drop-down
|
||||
this.hasResultsPerPage = Types.isArray(this.resultsPerPage);
|
||||
//defines css class for results per page select
|
||||
this.resultsSlcCssClass = f.results_slc_css_class || 'rspg';
|
||||
//css class for label preceding results per page select
|
||||
this.resultsSpanCssClass = f.results_span_css_class || 'rspgSpan';
|
||||
//1st row index of current page
|
||||
this.startPagingRow = 0;
|
||||
//total nb of pages
|
||||
this.nbPages = 0;
|
||||
//current page nb
|
||||
this.currentPageNb = 1;
|
||||
//defines next page button text
|
||||
this.btnNextPageText = f.btn_next_page_text || '>';
|
||||
//defines previous page button text
|
||||
this.btnPrevPageText = f.btn_prev_page_text || '<';
|
||||
//defines last page button text
|
||||
this.btnLastPageText = f.btn_last_page_text || '>|';
|
||||
//defines first page button text
|
||||
this.btnFirstPageText = f.btn_first_page_text || '|<';
|
||||
//defines next page button html
|
||||
this.btnNextPageHtml = f.btn_next_page_html ||
|
||||
(!tf.enableIcons ? null :
|
||||
'<input type="button" value="" class="'+this.btnPageCssClass +
|
||||
' nextPage" title="Next page" />');
|
||||
//defines previous page button html
|
||||
this.btnPrevPageHtml = f.btn_prev_page_html ||
|
||||
(!tf.enableIcons ? null :
|
||||
'<input type="button" value="" class="'+this.btnPageCssClass +
|
||||
' previousPage" title="Previous page" />');
|
||||
//defines last page button html
|
||||
this.btnFirstPageHtml = f.btn_first_page_html ||
|
||||
(!tf.enableIcons ? null :
|
||||
'<input type="button" value="" class="'+this.btnPageCssClass +
|
||||
' firstPage" title="First page" />');
|
||||
//defines previous page button html
|
||||
this.btnLastPageHtml = f.btn_last_page_html ||
|
||||
(!tf.enableIcons ? null :
|
||||
'<input type="button" value="" class="'+this.btnPageCssClass +
|
||||
' lastPage" title="Last page" />');
|
||||
//defines text preceeding page selector drop-down
|
||||
this.pageText = f.page_text || ' Page ';
|
||||
//defines text after page selector drop-down
|
||||
this.ofText = f.of_text || ' of ';
|
||||
//css class for span containing tot nb of pages
|
||||
this.nbPgSpanCssClass = f.nb_pages_css_class || 'nbpg';
|
||||
//enables/disables paging buttons
|
||||
this.hasPagingBtns = f.paging_btns===false ? false : true;
|
||||
//defines previous page button html
|
||||
this.pageSelectorType = f.page_selector_type || tf.fltTypeSlc;
|
||||
//calls function before page is changed
|
||||
this.onBeforeChangePage = Types.isFn(f.on_before_change_page) ?
|
||||
f.on_before_change_page : null;
|
||||
//calls function before page is changed
|
||||
this.onAfterChangePage = Types.isFn(f.on_after_change_page) ?
|
||||
f.on_after_change_page : null;
|
||||
|
||||
//pages select
|
||||
this.prfxSlcPages = 'slcPages_';
|
||||
//results per page select
|
||||
this.prfxSlcResults = 'slcResults_';
|
||||
//label preciding results per page select
|
||||
this.prfxSlcResultsTxt = 'slcResultsTxt_';
|
||||
//span containing next page button
|
||||
this.prfxBtnNextSpan = 'btnNextSpan_';
|
||||
//span containing previous page button
|
||||
this.prfxBtnPrevSpan = 'btnPrevSpan_';
|
||||
//span containing last page button
|
||||
this.prfxBtnLastSpan = 'btnLastSpan_';
|
||||
//span containing first page button
|
||||
this.prfxBtnFirstSpan = 'btnFirstSpan_';
|
||||
//next button
|
||||
this.prfxBtnNext = 'btnNext_';
|
||||
//previous button
|
||||
this.prfxBtnPrev = 'btnPrev_';
|
||||
//last button
|
||||
this.prfxBtnLast = 'btnLast_';
|
||||
//first button
|
||||
this.prfxBtnFirst = 'btnFirst_';
|
||||
//span for tot nb pages
|
||||
this.prfxPgSpan = 'pgspan_';
|
||||
//span preceding pages select (contains 'Page')
|
||||
this.prfxPgBeforeSpan = 'pgbeforespan_';
|
||||
//span following pages select (contains ' of ')
|
||||
this.prfxPgAfterSpan = 'pgafterspan_';
|
||||
|
||||
var start_row = this.refRow;
|
||||
var nrows = this.nbRows;
|
||||
//calculates page nb
|
||||
this.nbPages = Math.ceil((nrows-start_row)/this.pagingLength);
|
||||
|
||||
//Paging elements events
|
||||
var o = this;
|
||||
// Paging DOM events
|
||||
this.evt = {
|
||||
slcIndex(){
|
||||
return (o.pageSelectorType===tf.fltTypeSlc) ?
|
||||
o.pagingSlc.options.selectedIndex :
|
||||
parseInt(o.pagingSlc.value, 10)-1;
|
||||
},
|
||||
nbOpts(){
|
||||
return (o.pageSelectorType===tf.fltTypeSlc) ?
|
||||
parseInt(o.pagingSlc.options.length, 10)-1 :
|
||||
(o.nbPages-1);
|
||||
},
|
||||
next(){
|
||||
var nextIndex = o.evt.slcIndex() < o.evt.nbOpts() ?
|
||||
o.evt.slcIndex()+1 : 0;
|
||||
o.changePage(nextIndex);
|
||||
},
|
||||
prev(){
|
||||
var prevIndex = o.evt.slcIndex()>0 ?
|
||||
o.evt.slcIndex()-1 : o.evt.nbOpts();
|
||||
o.changePage(prevIndex);
|
||||
},
|
||||
last(){
|
||||
o.changePage(o.evt.nbOpts());
|
||||
},
|
||||
first(){
|
||||
o.changePage(0);
|
||||
},
|
||||
_detectKey(e){
|
||||
var key = Event.keyCode(e);
|
||||
if(key===13){
|
||||
if(tf.sorted){
|
||||
tf.filter();
|
||||
o.changePage(o.evt.slcIndex());
|
||||
} else{
|
||||
o.changePage();
|
||||
}
|
||||
this.blur();
|
||||
}
|
||||
},
|
||||
slcPagesChange: null,
|
||||
nextEvt: null,
|
||||
prevEvt: null,
|
||||
lastEvt: null,
|
||||
firstEvt: null
|
||||
};
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize DOM elements
|
||||
*/
|
||||
init(){
|
||||
var slcPages;
|
||||
var tf = this.tf;
|
||||
var evt = this.evt;
|
||||
|
||||
// Check resultsPerPage is in expected format and initialise the
|
||||
// results per page component
|
||||
if(this.hasResultsPerPage){
|
||||
if(this.resultsPerPage.length<2){
|
||||
this.hasResultsPerPage = false;
|
||||
} else {
|
||||
this.pagingLength = this.resultsPerPage[1][0];
|
||||
this.setResultsPerPage();
|
||||
}
|
||||
}
|
||||
|
||||
evt.slcPagesChange = (event) => {
|
||||
var slc = event.target;
|
||||
this.changePage(slc.selectedIndex);
|
||||
};
|
||||
|
||||
// Paging drop-down list selector
|
||||
if(this.pageSelectorType === tf.fltTypeSlc){
|
||||
slcPages = Dom.create(
|
||||
tf.fltTypeSlc, ['id', this.prfxSlcPages+tf.id]);
|
||||
slcPages.className = this.pgSlcCssClass;
|
||||
Event.add(slcPages, 'change', evt.slcPagesChange);
|
||||
}
|
||||
|
||||
// Paging input selector
|
||||
if(this.pageSelectorType === tf.fltTypeInp){
|
||||
slcPages = Dom.create(
|
||||
tf.fltTypeInp,
|
||||
['id', this.prfxSlcPages+tf.id],
|
||||
['value', this.currentPageNb]
|
||||
);
|
||||
slcPages.className = this.pgInpCssClass;
|
||||
Event.add(slcPages, 'keypress', evt._detectKey);
|
||||
}
|
||||
|
||||
// btns containers
|
||||
var btnNextSpan = Dom.create(
|
||||
'span',['id', this.prfxBtnNextSpan+tf.id]);
|
||||
var btnPrevSpan = Dom.create(
|
||||
'span',['id', this.prfxBtnPrevSpan+tf.id]);
|
||||
var btnLastSpan = Dom.create(
|
||||
'span',['id', this.prfxBtnLastSpan+tf.id]);
|
||||
var btnFirstSpan = Dom.create(
|
||||
'span',['id', this.prfxBtnFirstSpan+tf.id]);
|
||||
|
||||
if(this.hasPagingBtns){
|
||||
// Next button
|
||||
if(!this.btnNextPageHtml){
|
||||
var btn_next = Dom.create(
|
||||
tf.fltTypeInp,
|
||||
['id', this.prfxBtnNext+tf.id],
|
||||
['type', 'button'],
|
||||
['value', this.btnNextPageText],
|
||||
['title', 'Next']
|
||||
);
|
||||
btn_next.className = this.btnPageCssClass;
|
||||
Event.add(btn_next, 'click', evt.next);
|
||||
btnNextSpan.appendChild(btn_next);
|
||||
} else {
|
||||
btnNextSpan.innerHTML = this.btnNextPageHtml;
|
||||
Event.add(btnNextSpan, 'click', evt.next);
|
||||
}
|
||||
// Previous button
|
||||
if(!this.btnPrevPageHtml){
|
||||
var btn_prev = Dom.create(
|
||||
tf.fltTypeInp,
|
||||
['id', this.prfxBtnPrev+tf.id],
|
||||
['type', 'button'],
|
||||
['value', this.btnPrevPageText],
|
||||
['title', 'Previous']
|
||||
);
|
||||
btn_prev.className = this.btnPageCssClass;
|
||||
Event.add(btn_prev, 'click', evt.prev);
|
||||
btnPrevSpan.appendChild(btn_prev);
|
||||
} else {
|
||||
btnPrevSpan.innerHTML = this.btnPrevPageHtml;
|
||||
Event.add(btnPrevSpan, 'click', evt.prev);
|
||||
}
|
||||
// Last button
|
||||
if(!this.btnLastPageHtml){
|
||||
var btn_last = Dom.create(
|
||||
tf.fltTypeInp,
|
||||
['id', this.prfxBtnLast+tf.id],
|
||||
['type', 'button'],
|
||||
['value', this.btnLastPageText],
|
||||
['title', 'Last']
|
||||
);
|
||||
btn_last.className = this.btnPageCssClass;
|
||||
Event.add(btn_last, 'click', evt.last);
|
||||
btnLastSpan.appendChild(btn_last);
|
||||
} else {
|
||||
btnLastSpan.innerHTML = this.btnLastPageHtml;
|
||||
Event.add(btnLastSpan, 'click', evt.last);
|
||||
}
|
||||
// First button
|
||||
if(!this.btnFirstPageHtml){
|
||||
var btn_first = Dom.create(
|
||||
tf.fltTypeInp,
|
||||
['id', this.prfxBtnFirst+tf.id],
|
||||
['type', 'button'],
|
||||
['value', this.btnFirstPageText],
|
||||
['title', 'First']
|
||||
);
|
||||
btn_first.className = this.btnPageCssClass;
|
||||
Event.add(btn_first, 'click', evt.first);
|
||||
btnFirstSpan.appendChild(btn_first);
|
||||
} else {
|
||||
btnFirstSpan.innerHTML = this.btnFirstPageHtml;
|
||||
Event.add(btnFirstSpan, 'click', evt.first);
|
||||
}
|
||||
}
|
||||
|
||||
// paging elements (buttons+drop-down list) are added to defined element
|
||||
if(!this.pagingTgtId){
|
||||
tf.setToolbar();
|
||||
}
|
||||
var targetEl = !this.pagingTgtId ? tf.mDiv : Dom.id(this.pagingTgtId);
|
||||
targetEl.appendChild(btnFirstSpan);
|
||||
targetEl.appendChild(btnPrevSpan);
|
||||
|
||||
var pgBeforeSpan = Dom.create(
|
||||
'span',['id', this.prfxPgBeforeSpan+tf.id] );
|
||||
pgBeforeSpan.appendChild( Dom.text(this.pageText) );
|
||||
pgBeforeSpan.className = this.nbPgSpanCssClass;
|
||||
targetEl.appendChild(pgBeforeSpan);
|
||||
targetEl.appendChild(slcPages);
|
||||
var pgAfterSpan = Dom.create(
|
||||
'span',['id', this.prfxPgAfterSpan+tf.id]);
|
||||
pgAfterSpan.appendChild( Dom.text(this.ofText) );
|
||||
pgAfterSpan.className = this.nbPgSpanCssClass;
|
||||
targetEl.appendChild(pgAfterSpan);
|
||||
var pgspan = Dom.create( 'span',['id', this.prfxPgSpan+tf.id] );
|
||||
pgspan.className = this.nbPgSpanCssClass;
|
||||
pgspan.appendChild( Dom.text(' '+this.nbPages+' ') );
|
||||
targetEl.appendChild(pgspan);
|
||||
targetEl.appendChild(btnNextSpan);
|
||||
targetEl.appendChild(btnLastSpan);
|
||||
this.pagingSlc = Dom.id(this.prfxSlcPages+tf.id);
|
||||
|
||||
if(!tf.rememberGridValues || this.isPagingRemoved){
|
||||
this.setPagingInfo();
|
||||
}
|
||||
if(!tf.fltGrid){
|
||||
tf.validateAllRows();
|
||||
this.setPagingInfo(tf.validRowsIndex);
|
||||
}
|
||||
|
||||
this.isPagingRemoved = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset paging when filters are already instantiated
|
||||
* @param {Boolean} filterTable Execute filtering once paging instanciated
|
||||
*/
|
||||
reset(filterTable=false){
|
||||
var tf = this.tf;
|
||||
if(!tf.hasGrid() || tf.paging){
|
||||
return;
|
||||
}
|
||||
tf.paging = true;
|
||||
this.isPagingRemoved = true;
|
||||
this.init();
|
||||
tf.resetValues();
|
||||
if(filterTable){
|
||||
tf.filter();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate number of pages based on valid rows
|
||||
* Refresh paging select according to number of pages
|
||||
* @param {Array} validRows Collection of valid rows
|
||||
*/
|
||||
setPagingInfo(validRows=[]){
|
||||
var tf = this.tf;
|
||||
var rows = tf.tbl.rows;
|
||||
var mdiv = !this.pagingTgtId ? tf.mDiv : Dom.id(this.pagingTgtId);
|
||||
var pgspan = Dom.id(this.prfxPgSpan+tf.id);
|
||||
|
||||
//store valid rows indexes
|
||||
tf.validRowsIndex = validRows;
|
||||
|
||||
if(validRows.length === 0){
|
||||
//counts rows to be grouped
|
||||
for(var j=tf.refRow; j<tf.nbRows; j++){
|
||||
var row = rows[j];
|
||||
if(!row){
|
||||
continue;
|
||||
}
|
||||
|
||||
var isRowValid = row.getAttribute('validRow');
|
||||
if(Types.isNull(isRowValid) || Boolean(isRowValid==='true')){
|
||||
tf.validRowsIndex.push(j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//calculate nb of pages
|
||||
this.nbPages = Math.ceil(tf.validRowsIndex.length/this.pagingLength);
|
||||
//refresh page nb span
|
||||
pgspan.innerHTML = this.nbPages;
|
||||
//select clearing shortcut
|
||||
if(this.pageSelectorType === tf.fltTypeSlc){
|
||||
this.pagingSlc.innerHTML = '';
|
||||
}
|
||||
|
||||
if(this.nbPages>0){
|
||||
mdiv.style.visibility = 'visible';
|
||||
if(this.pageSelectorType === tf.fltTypeSlc){
|
||||
for(var z=0; z<this.nbPages; z++){
|
||||
var opt = Dom.createOpt(z+1, z*this.pagingLength, false);
|
||||
this.pagingSlc.options[z] = opt;
|
||||
}
|
||||
} else{
|
||||
//input type
|
||||
this.pagingSlc.value = this.currentPageNb;
|
||||
}
|
||||
|
||||
} else {
|
||||
/*** if no results paging select and buttons are hidden ***/
|
||||
mdiv.style.visibility = 'hidden';
|
||||
}
|
||||
this.groupByPage(tf.validRowsIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* Group table rows by page and display valid rows
|
||||
* @param {Array} validRows Collection of valid rows
|
||||
*/
|
||||
groupByPage(validRows){
|
||||
var tf = this.tf;
|
||||
var alternateRows = tf.feature('alternateRows');
|
||||
var rows = tf.tbl.rows;
|
||||
var endPagingRow = parseInt(this.startPagingRow, 10) +
|
||||
parseInt(this.pagingLength, 10);
|
||||
|
||||
//store valid rows indexes
|
||||
if(validRows){
|
||||
tf.validRowsIndex = validRows;
|
||||
}
|
||||
|
||||
//this loop shows valid rows of current page
|
||||
for(var h=0, len=tf.validRowsIndex.length; h<len; h++){
|
||||
var validRowIdx = tf.validRowsIndex[h];
|
||||
var r = rows[validRowIdx];
|
||||
var isRowValid = r.getAttribute('validRow');
|
||||
|
||||
if(h>=this.startPagingRow && h<endPagingRow){
|
||||
if(Types.isNull(isRowValid) || Boolean(isRowValid==='true')){
|
||||
r.style.display = '';
|
||||
}
|
||||
if(tf.alternateBgs && alternateRows){
|
||||
alternateRows.setRowBg(validRowIdx, h);
|
||||
}
|
||||
} else {
|
||||
r.style.display = 'none';
|
||||
if(tf.alternateBgs && alternateRows){
|
||||
alternateRows.removeRowBg(validRowIdx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tf.nbVisibleRows = tf.validRowsIndex.length;
|
||||
//re-applies filter behaviours after filtering process
|
||||
tf.applyProps();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the current page number
|
||||
* @return {Number} Page number
|
||||
*/
|
||||
getPage(){
|
||||
return this.currentPageNb;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show page based on passed param value (string or number):
|
||||
* @param {String} or {Number} cmd possible string values: 'next',
|
||||
* 'previous', 'last', 'first' or page number as per param
|
||||
*/
|
||||
setPage(cmd){
|
||||
var tf = this.tf;
|
||||
if(!tf.hasGrid() || !tf.paging){
|
||||
return;
|
||||
}
|
||||
var btnEvt = this.evt,
|
||||
cmdtype = typeof cmd;
|
||||
if(cmdtype==='string'){
|
||||
switch(Str.lower(cmd)){
|
||||
case 'next':
|
||||
btnEvt.next();
|
||||
break;
|
||||
case 'previous':
|
||||
btnEvt.prev();
|
||||
break;
|
||||
case 'last':
|
||||
btnEvt.last();
|
||||
break;
|
||||
case 'first':
|
||||
btnEvt.first();
|
||||
break;
|
||||
default:
|
||||
btnEvt.next();
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if(cmdtype==='number'){
|
||||
this.changePage(cmd-1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates UI elements for the number of results per page drop-down
|
||||
*/
|
||||
setResultsPerPage(){
|
||||
var tf = this.tf;
|
||||
var evt = this.evt;
|
||||
|
||||
if(!tf.hasGrid() && !tf.isFirstLoad){
|
||||
return;
|
||||
}
|
||||
if(this.resultsPerPageSlc || !this.resultsPerPage){
|
||||
return;
|
||||
}
|
||||
|
||||
evt.slcResultsChange = (ev) => {
|
||||
this.changeResultsPerPage();
|
||||
ev.target.blur();
|
||||
};
|
||||
|
||||
var slcR = Dom.create(
|
||||
tf.fltTypeSlc, ['id', this.prfxSlcResults+tf.id]);
|
||||
slcR.className = tf.resultsSlcCssClass;
|
||||
var slcRText = this.resultsPerPage[0],
|
||||
slcROpts = this.resultsPerPage[1];
|
||||
var slcRSpan = Dom.create(
|
||||
'span',['id', this.prfxSlcResultsTxt+tf.id]);
|
||||
slcRSpan.className = this.resultsSpanCssClass;
|
||||
|
||||
// results per page select is added to external element
|
||||
if(!this.resultsPerPageTgtId){
|
||||
tf.setToolbar();
|
||||
}
|
||||
var targetEl = !this.resultsPerPageTgtId ?
|
||||
tf.rDiv : Dom.id(this.resultsPerPageTgtId);
|
||||
slcRSpan.appendChild(Dom.text(slcRText));
|
||||
|
||||
var help = tf.feature('help');
|
||||
if(help && help.cont){
|
||||
help.cont.parentNode.insertBefore(slcRSpan, help.cont);
|
||||
help.cont.parentNode.insertBefore(slcR, help.cont);
|
||||
} else {
|
||||
targetEl.appendChild(slcRSpan);
|
||||
targetEl.appendChild(slcR);
|
||||
}
|
||||
|
||||
for(var r=0; r<slcROpts.length; r++){
|
||||
var currOpt = new Option(slcROpts[r], slcROpts[r], false, false);
|
||||
slcR.options[r] = currOpt;
|
||||
}
|
||||
Event.add(slcR, 'change', evt.slcResultsChange);
|
||||
this.resultsPerPageSlc = slcR;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove number of results per page UI elements
|
||||
*/
|
||||
removeResultsPerPage(){
|
||||
var tf = this.tf;
|
||||
if(!tf.hasGrid() || !this.resultsPerPageSlc || !this.resultsPerPage){
|
||||
return;
|
||||
}
|
||||
var slcR = this.resultsPerPageSlc,
|
||||
slcRSpan = Dom.id(this.prfxSlcResultsTxt+tf.id);
|
||||
if(slcR){
|
||||
slcR.parentNode.removeChild(slcR);
|
||||
}
|
||||
if(slcRSpan){
|
||||
slcRSpan.parentNode.removeChild(slcRSpan);
|
||||
}
|
||||
this.resultsPerPageSlc = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Change the page asynchronously according to passed index
|
||||
* @param {Number} index Index of the page (0-n)
|
||||
*/
|
||||
changePage(index){
|
||||
var tf = this.tf;
|
||||
var evt = tf.Evt;
|
||||
tf.EvtManager(evt.name.changepage, { pgIndex:index });
|
||||
}
|
||||
|
||||
/**
|
||||
* Change rows asynchronously according to page results
|
||||
*/
|
||||
changeResultsPerPage(){
|
||||
var tf = this.tf;
|
||||
var evt = tf.Evt;
|
||||
tf.EvtManager(evt.name.changeresultsperpage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set asynchronously page nb at page re-load
|
||||
*/
|
||||
resetPage(){
|
||||
var tf = this.tf;
|
||||
var evt = tf.Evt;
|
||||
tf.EvtManager(evt.name.resetpage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set asynchronously page length at page re-load
|
||||
*/
|
||||
resetPageLength(){
|
||||
var tf = this.tf;
|
||||
var evt = tf.Evt;
|
||||
tf.EvtManager(evt.name.resetpagelength);
|
||||
}
|
||||
|
||||
/**
|
||||
* Change the page according to passed index
|
||||
* @param {Number} index Index of the page (0-n)
|
||||
*/
|
||||
_changePage(index){
|
||||
var tf = this.tf;
|
||||
|
||||
if(!tf.paging){
|
||||
return;
|
||||
}
|
||||
if(index === null){
|
||||
index = this.pageSelectorType===tf.fltTypeSlc ?
|
||||
this.pagingSlc.options.selectedIndex : (this.pagingSlc.value-1);
|
||||
}
|
||||
if( index>=0 && index<=(this.nbPages-1) ){
|
||||
if(this.onBeforeChangePage){
|
||||
this.onBeforeChangePage.call(null, this, index);
|
||||
}
|
||||
this.currentPageNb = parseInt(index, 10)+1;
|
||||
if(this.pageSelectorType===tf.fltTypeSlc){
|
||||
this.pagingSlc.options[index].selected = true;
|
||||
} else {
|
||||
this.pagingSlc.value = this.currentPageNb;
|
||||
}
|
||||
|
||||
if(tf.rememberPageNb){
|
||||
tf.feature('store').savePageNb(tf.pgNbCookie);
|
||||
}
|
||||
this.startPagingRow = (this.pageSelectorType===tf.fltTypeSlc) ?
|
||||
this.pagingSlc.value : (index*this.pagingLength);
|
||||
|
||||
this.groupByPage();
|
||||
|
||||
if(this.onAfterChangePage){
|
||||
this.onAfterChangePage.call(null, this, index);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Change rows according to page results drop-down
|
||||
* TODO: accept a parameter setting the results per page length
|
||||
*/
|
||||
_changeResultsPerPage(){
|
||||
var tf = this.tf;
|
||||
|
||||
if(!tf.paging){
|
||||
return;
|
||||
}
|
||||
var slcR = this.resultsPerPageSlc;
|
||||
var slcPagesSelIndex = (this.pageSelectorType===tf.fltTypeSlc) ?
|
||||
this.pagingSlc.selectedIndex :
|
||||
parseInt(this.pagingSlc.value-1, 10);
|
||||
this.pagingLength = parseInt(slcR.options[slcR.selectedIndex].value,10);
|
||||
this.startPagingRow = this.pagingLength*slcPagesSelIndex;
|
||||
|
||||
if(!isNaN(this.pagingLength)){
|
||||
if(this.startPagingRow >= tf.nbFilterableRows){
|
||||
this.startPagingRow = (tf.nbFilterableRows-this.pagingLength);
|
||||
}
|
||||
this.setPagingInfo();
|
||||
|
||||
if(this.pageSelectorType===tf.fltTypeSlc){
|
||||
var slcIndex =
|
||||
(this.pagingSlc.options.length-1<=slcPagesSelIndex ) ?
|
||||
(this.pagingSlc.options.length-1) : slcPagesSelIndex;
|
||||
this.pagingSlc.options[slcIndex].selected = true;
|
||||
}
|
||||
if(tf.rememberPageLen){
|
||||
tf.feature('store').savePageLength(tf.pgLenCookie);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set page nb at page re-load
|
||||
*/
|
||||
_resetPage(name){
|
||||
var tf = this.tf;
|
||||
var pgnb = tf.feature('store').getPageNb(name);
|
||||
if(pgnb!==''){
|
||||
this.changePage((pgnb-1));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set page length value at page re-load
|
||||
*/
|
||||
_resetPageLength(name){
|
||||
var tf = this.tf;
|
||||
if(!tf.paging){
|
||||
return;
|
||||
}
|
||||
var pglenIndex = tf.feature('store').getPageLength(name);
|
||||
|
||||
if(pglenIndex!==''){
|
||||
this.resultsPerPageSlc.options[pglenIndex].selected = true;
|
||||
this.changeResultsPerPage();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove paging feature
|
||||
*/
|
||||
destroy(){
|
||||
var tf = this.tf;
|
||||
|
||||
if(!tf.hasGrid()){
|
||||
return;
|
||||
}
|
||||
// btns containers
|
||||
var btnNextSpan = Dom.id(this.prfxBtnNextSpan+tf.id);
|
||||
var btnPrevSpan = Dom.id(this.prfxBtnPrevSpan+tf.id);
|
||||
var btnLastSpan = Dom.id(this.prfxBtnLastSpan+tf.id);
|
||||
var btnFirstSpan = Dom.id(this.prfxBtnFirstSpan+tf.id);
|
||||
//span containing 'Page' text
|
||||
var pgBeforeSpan = Dom.id(this.prfxPgBeforeSpan+tf.id);
|
||||
//span containing 'of' text
|
||||
var pgAfterSpan = Dom.id(this.prfxPgAfterSpan+tf.id);
|
||||
//span containing nb of pages
|
||||
var pgspan = Dom.id(this.prfxPgSpan+tf.id);
|
||||
|
||||
var evt = this.evt;
|
||||
|
||||
if(this.pagingSlc){
|
||||
if(this.pageSelectorType === tf.fltTypeSlc){
|
||||
Event.remove(this.pagingSlc, 'change', evt.slcPagesChange);
|
||||
}
|
||||
else if(this.pageSelectorType === tf.fltTypeInp){
|
||||
Event.remove(this.pagingSlc, 'keypress', evt._detectKey);
|
||||
}
|
||||
this.pagingSlc.parentNode.removeChild(this.pagingSlc);
|
||||
}
|
||||
|
||||
if(btnNextSpan){
|
||||
Event.remove(btnNextSpan, 'click', evt.next);
|
||||
btnNextSpan.parentNode.removeChild(btnNextSpan);
|
||||
}
|
||||
|
||||
if(btnPrevSpan){
|
||||
Event.remove(btnPrevSpan, 'click', evt.prev);
|
||||
btnPrevSpan.parentNode.removeChild(btnPrevSpan);
|
||||
}
|
||||
|
||||
if(btnLastSpan){
|
||||
Event.remove(btnLastSpan, 'click', evt.last);
|
||||
btnLastSpan.parentNode.removeChild(btnLastSpan);
|
||||
}
|
||||
|
||||
if(btnFirstSpan){
|
||||
Event.remove(btnFirstSpan, 'click', evt.first);
|
||||
btnFirstSpan.parentNode.removeChild(btnFirstSpan);
|
||||
}
|
||||
|
||||
if(pgBeforeSpan){
|
||||
pgBeforeSpan.parentNode.removeChild(pgBeforeSpan);
|
||||
}
|
||||
|
||||
if(pgAfterSpan){
|
||||
pgAfterSpan.parentNode.removeChild(pgAfterSpan);
|
||||
}
|
||||
|
||||
if(pgspan){
|
||||
pgspan.parentNode.removeChild(pgspan);
|
||||
}
|
||||
|
||||
if(this.hasResultsPerPage){
|
||||
this.removeResultsPerPage();
|
||||
}
|
||||
|
||||
this.pagingSlc = null;
|
||||
this.nbPages = 0;
|
||||
this.isPagingRemoved = true;
|
||||
tf.paging = false;
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,313 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/popupFilter.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/popupFilter.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Types from '../types';
|
||||
import Dom from '../dom';
|
||||
import Event from '../event';
|
||||
|
||||
export class PopupFilter{
|
||||
|
||||
/**
|
||||
* Pop-up filter component
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf){
|
||||
// Configuration object
|
||||
var f = tf.config();
|
||||
|
||||
// Enable external filters behaviour
|
||||
tf.isExternalFlt = true;
|
||||
tf.externalFltTgtIds = [];
|
||||
|
||||
//filter icon path
|
||||
this.popUpImgFlt = f.popup_filters_image ||
|
||||
tf.themesPath+'icn_filter.gif';
|
||||
//active filter icon path
|
||||
this.popUpImgFltActive = f.popup_filters_image_active ||
|
||||
tf.themesPath+'icn_filterActive.gif';
|
||||
this.popUpImgFltHtml = f.popup_filters_image_html ||
|
||||
'<img src="'+ this.popUpImgFlt +'" alt="Column filter" />';
|
||||
//defines css class for popup div containing filter
|
||||
this.popUpDivCssClass = f.popup_div_css_class || 'popUpFilter';
|
||||
//callback function before popup filtes is opened
|
||||
this.onBeforePopUpOpen = Types.isFn(f.on_before_popup_filter_open) ?
|
||||
f.on_before_popup_filter_open : null;
|
||||
//callback function after popup filtes is opened
|
||||
this.onAfterPopUpOpen = Types.isFn(f.on_after_popup_filter_open) ?
|
||||
f.on_after_popup_filter_open : null;
|
||||
//callback function before popup filtes is closed
|
||||
this.onBeforePopUpClose =
|
||||
Types.isFn(f.on_before_popup_filter_close) ?
|
||||
f.on_before_popup_filter_close : null;
|
||||
//callback function after popup filtes is closed
|
||||
this.onAfterPopUpClose = Types.isFn(f.on_after_popup_filter_close) ?
|
||||
f.on_after_popup_filter_close : null;
|
||||
|
||||
//stores filters spans
|
||||
this.popUpFltSpans = [];
|
||||
//stores filters icons
|
||||
this.popUpFltImgs = [];
|
||||
//stores filters containers
|
||||
this.popUpFltElms = this.popUpFltElmCache || [];
|
||||
this.popUpFltAdjustToContainer = true;
|
||||
|
||||
//id prefix for pop-up filter span
|
||||
this.prfxPopUpSpan = 'popUpSpan_';
|
||||
//id prefix for pop-up div containing filter
|
||||
this.prfxPopUpDiv = 'popUpDiv_';
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
onClick(e){
|
||||
var evt = e || global.event,
|
||||
elm = evt.target.parentNode,
|
||||
colIndex = parseInt(elm.getAttribute('ci'), 10);
|
||||
|
||||
this.closeAll(colIndex);
|
||||
this.toggle(colIndex);
|
||||
|
||||
if(this.popUpFltAdjustToContainer){
|
||||
var popUpDiv = this.popUpFltElms[colIndex],
|
||||
header = this.tf.getHeaderElement(colIndex),
|
||||
headerWidth = header.clientWidth * 0.95;
|
||||
popUpDiv.style.width = parseInt(headerWidth, 10) + 'px';
|
||||
}
|
||||
Event.cancel(evt);
|
||||
Event.stop(evt);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize DOM elements
|
||||
*/
|
||||
init(){
|
||||
var tf = this.tf;
|
||||
for(var i=0; i<tf.nbCells; i++){
|
||||
if(tf['col'+i] === tf.fltTypeNone){
|
||||
continue;
|
||||
}
|
||||
var popUpSpan = Dom.create(
|
||||
'span',
|
||||
['id', this.prfxPopUpSpan+tf.id+'_'+i],
|
||||
['ci', i]
|
||||
);
|
||||
popUpSpan.innerHTML = this.popUpImgFltHtml;
|
||||
var header = tf.getHeaderElement(i);
|
||||
header.appendChild(popUpSpan);
|
||||
Event.add(popUpSpan, 'click', (evt) => { this.onClick(evt); });
|
||||
this.popUpFltSpans[i] = popUpSpan;
|
||||
this.popUpFltImgs[i] = popUpSpan.firstChild;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build all pop-up filters elements
|
||||
*/
|
||||
buildAll(){
|
||||
for(var i=0; i<this.popUpFltElmCache.length; i++){
|
||||
this.build(i, this.popUpFltElmCache[i]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a specified pop-up filter elements
|
||||
* @param {Number} colIndex Column index
|
||||
* @param {Object} div Optional container DOM element
|
||||
*/
|
||||
build(colIndex, div){
|
||||
var tf = this.tf;
|
||||
var popUpDiv = !div ?
|
||||
Dom.create('div', ['id', this.prfxPopUpDiv+tf.id+'_'+colIndex]) :
|
||||
div;
|
||||
popUpDiv.className = this.popUpDivCssClass;
|
||||
tf.externalFltTgtIds.push(popUpDiv.id);
|
||||
var header = tf.getHeaderElement(colIndex);
|
||||
header.insertBefore(popUpDiv, header.firstChild);
|
||||
Event.add(popUpDiv, 'click', (evt) => { Event.stop(evt); });
|
||||
this.popUpFltElms[colIndex] = popUpDiv;
|
||||
}
|
||||
|
||||
/**
|
||||
* Toogle visibility of specified filter
|
||||
* @param {Number} colIndex Column index
|
||||
*/
|
||||
toggle(colIndex){
|
||||
var tf = this.tf,
|
||||
popUpFltElm = this.popUpFltElms[colIndex];
|
||||
|
||||
if(popUpFltElm.style.display === 'none' ||
|
||||
popUpFltElm.style.display === ''){
|
||||
if(this.onBeforePopUpOpen){
|
||||
this.onBeforePopUpOpen.call(
|
||||
null, this, this.popUpFltElms[colIndex], colIndex);
|
||||
}
|
||||
popUpFltElm.style.display = 'block';
|
||||
if(tf['col'+colIndex] === tf.fltTypeInp){
|
||||
var flt = tf.getFilterElement(colIndex);
|
||||
if(flt){
|
||||
flt.focus();
|
||||
}
|
||||
}
|
||||
if(this.onAfterPopUpOpen){
|
||||
this.onAfterPopUpOpen.call(
|
||||
null, this, this.popUpFltElms[colIndex], colIndex);
|
||||
}
|
||||
} else {
|
||||
if(this.onBeforePopUpClose){
|
||||
this.onBeforePopUpClose.call(
|
||||
null, this, this.popUpFltElms[colIndex], colIndex);
|
||||
}
|
||||
popUpFltElm.style.display = 'none';
|
||||
if(this.onAfterPopUpClose){
|
||||
this.onAfterPopUpClose.call(
|
||||
null, this, this.popUpFltElms[colIndex], colIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Close all filters excepted for the specified one if any
|
||||
* @param {Number} exceptIdx Column index of the filter to not close
|
||||
*/
|
||||
closeAll(exceptIdx){
|
||||
for(var i=0; i<this.popUpFltElms.length; i++){
|
||||
if(i === exceptIdx){
|
||||
continue;
|
||||
}
|
||||
var popUpFltElm = this.popUpFltElms[i];
|
||||
if(popUpFltElm){
|
||||
popUpFltElm.style.display = 'none';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build all the icons representing the pop-up filters
|
||||
*/
|
||||
buildIcons(){
|
||||
for(var i=0; i<this.popUpFltImgs.length; i++){
|
||||
this.buildIcon(i, false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build specified icon
|
||||
* @param {Number} colIndex Column index
|
||||
* @param {Boolean} active Apply active state
|
||||
*/
|
||||
buildIcon(colIndex, active){
|
||||
if(this.popUpFltImgs[colIndex]){
|
||||
this.popUpFltImgs[colIndex].src = active ?
|
||||
this.popUpImgFltActive : this.popUpImgFlt;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove pop-up filters
|
||||
*/
|
||||
destroy(){
|
||||
this.popUpFltElmCache = [];
|
||||
for(var i=0; i<this.popUpFltElms.length; i++){
|
||||
var popUpFltElm = this.popUpFltElms[i],
|
||||
popUpFltSpan = this.popUpFltSpans[i],
|
||||
popUpFltImg = this.popUpFltImgs[i];
|
||||
if(popUpFltElm){
|
||||
popUpFltElm.parentNode.removeChild(popUpFltElm);
|
||||
this.popUpFltElmCache[i] = popUpFltElm;
|
||||
}
|
||||
popUpFltElm = null;
|
||||
if(popUpFltSpan){
|
||||
popUpFltSpan.parentNode.removeChild(popUpFltSpan);
|
||||
}
|
||||
popUpFltSpan = null;
|
||||
if(popUpFltImg){
|
||||
popUpFltImg.parentNode.removeChild(popUpFltImg);
|
||||
}
|
||||
popUpFltImg = null;
|
||||
}
|
||||
this.popUpFltElms = [];
|
||||
this.popUpFltSpans = [];
|
||||
this.popUpFltImgs = [];
|
||||
}
|
||||
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,218 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/rowsCounter.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/rowsCounter.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../dom';
|
||||
import Types from '../types';
|
||||
|
||||
export class RowsCounter{
|
||||
|
||||
/**
|
||||
* Rows counter
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf){
|
||||
// TableFilter configuration
|
||||
var f = tf.config();
|
||||
|
||||
//id of custom container element
|
||||
this.rowsCounterTgtId = f.rows_counter_target_id || null;
|
||||
//element containing tot nb rows
|
||||
this.rowsCounterDiv = null;
|
||||
//element containing tot nb rows label
|
||||
this.rowsCounterSpan = null;
|
||||
//defines rows counter text
|
||||
this.rowsCounterText = f.rows_counter_text || 'Rows: ';
|
||||
this.fromToTextSeparator = f.from_to_text_separator || '-';
|
||||
this.overText = f.over_text || ' / ';
|
||||
//defines css class rows counter
|
||||
this.totRowsCssClass = f.tot_rows_css_class || 'tot';
|
||||
//rows counter div
|
||||
this.prfxCounter = 'counter_';
|
||||
//nb displayed rows label
|
||||
this.prfxTotRows = 'totrows_span_';
|
||||
//label preceding nb rows label
|
||||
this.prfxTotRowsTxt = 'totRowsTextSpan_';
|
||||
//callback raised before counter is refreshed
|
||||
this.onBeforeRefreshCounter = Types.isFn(f.on_before_refresh_counter) ?
|
||||
f.on_before_refresh_counter : null;
|
||||
//callback raised after counter is refreshed
|
||||
this.onAfterRefreshCounter = Types.isFn(f.on_after_refresh_counter) ?
|
||||
f.on_after_refresh_counter : null;
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
init(){
|
||||
var tf = this.tf;
|
||||
|
||||
if((!tf.hasGrid() && !tf.isFirstLoad) || this.rowsCounterSpan){
|
||||
return;
|
||||
}
|
||||
|
||||
//rows counter container
|
||||
var countDiv = Dom.create('div', ['id', this.prfxCounter+tf.id]);
|
||||
countDiv.className = this.totRowsCssClass;
|
||||
//rows counter label
|
||||
var countSpan = Dom.create('span', ['id', this.prfxTotRows+tf.id]);
|
||||
var countText = Dom.create('span', ['id', this.prfxTotRowsTxt+tf.id]);
|
||||
countText.appendChild(Dom.text(this.rowsCounterText));
|
||||
|
||||
// counter is added to defined element
|
||||
if(!this.rowsCounterTgtId){
|
||||
tf.setToolbar();
|
||||
}
|
||||
var targetEl = !this.rowsCounterTgtId ?
|
||||
tf.lDiv : Dom.id( this.rowsCounterTgtId );
|
||||
|
||||
//default container: 'lDiv'
|
||||
if(!this.rowsCounterTgtId){
|
||||
countDiv.appendChild(countText);
|
||||
countDiv.appendChild(countSpan);
|
||||
targetEl.appendChild(countDiv);
|
||||
}
|
||||
else{
|
||||
//custom container, no need to append statusDiv
|
||||
targetEl.appendChild(countText);
|
||||
targetEl.appendChild(countSpan);
|
||||
}
|
||||
this.rowsCounterDiv = countDiv;
|
||||
this.rowsCounterSpan = countSpan;
|
||||
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
refresh(p){
|
||||
if(!this.rowsCounterSpan){
|
||||
return;
|
||||
}
|
||||
|
||||
var tf = this.tf;
|
||||
|
||||
if(this.onBeforeRefreshCounter){
|
||||
this.onBeforeRefreshCounter.call(null, tf, this.rowsCounterSpan);
|
||||
}
|
||||
|
||||
var totTxt;
|
||||
if(!tf.paging){
|
||||
if(p && p !== ''){
|
||||
totTxt = p;
|
||||
} else{
|
||||
totTxt = tf.nbFilterableRows - tf.nbHiddenRows;
|
||||
}
|
||||
} else {
|
||||
var paging = tf.feature('paging');
|
||||
if(paging){
|
||||
//paging start row
|
||||
var paging_start_row = parseInt(paging.startPagingRow, 10) +
|
||||
((tf.nbVisibleRows>0) ? 1 : 0);
|
||||
var paging_end_row = (paging_start_row+paging.pagingLength)-1 <=
|
||||
tf.nbVisibleRows ?
|
||||
paging_start_row+paging.pagingLength-1 :
|
||||
tf.nbVisibleRows;
|
||||
totTxt = paging_start_row + this.fromToTextSeparator +
|
||||
paging_end_row + this.overText + tf.nbVisibleRows;
|
||||
}
|
||||
}
|
||||
|
||||
this.rowsCounterSpan.innerHTML = totTxt;
|
||||
if(this.onAfterRefreshCounter){
|
||||
this.onAfterRefreshCounter.call(
|
||||
null, tf, this.rowsCounterSpan, totTxt);
|
||||
}
|
||||
}
|
||||
|
||||
destroy(){
|
||||
var tf = this.tf;
|
||||
if(!tf.hasGrid() || !this.rowsCounterSpan){
|
||||
return;
|
||||
}
|
||||
|
||||
if(!this.rowsCounterTgtId && this.rowsCounterDiv){
|
||||
this.rowsCounterDiv.parentNode.removeChild(this.rowsCounterDiv);
|
||||
} else {
|
||||
Dom.id(this.rowsCounterTgtId).innerHTML = '';
|
||||
}
|
||||
this.rowsCounterSpan = null;
|
||||
this.rowsCounterDiv = null;
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,203 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/statusBar.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/statusBar.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Dom from '../dom';
|
||||
import Types from '../types';
|
||||
|
||||
var global = window;
|
||||
|
||||
export class StatusBar{
|
||||
|
||||
/**
|
||||
* Status bar UI component
|
||||
* @param {Object} tf TableFilter instance
|
||||
*/
|
||||
constructor(tf){
|
||||
// Configuration object
|
||||
var f = tf.config();
|
||||
|
||||
//id of custom container element
|
||||
this.statusBarTgtId = f.status_bar_target_id || null;
|
||||
//element containing status bar label
|
||||
this.statusBarDiv = null;
|
||||
//status bar
|
||||
this.statusBarSpan = null;
|
||||
//status bar label
|
||||
this.statusBarSpanText = null;
|
||||
//defines status bar text
|
||||
this.statusBarText = f.status_bar_text || '';
|
||||
//defines css class status bar
|
||||
this.statusBarCssClass = f.status_bar_css_class || 'status';
|
||||
//delay for status bar clearing
|
||||
this.statusBarCloseDelay = 250;
|
||||
|
||||
//calls function before message is displayed
|
||||
this.onBeforeShowMsg = Types.isFn(f.on_before_show_msg) ?
|
||||
f.on_before_show_msg : null;
|
||||
//calls function after message is displayed
|
||||
this.onAfterShowMsg = Types.isFn(f.on_after_show_msg) ?
|
||||
f.on_after_show_msg : null;
|
||||
|
||||
// status bar div
|
||||
this.prfxStatus = 'status_';
|
||||
// status bar label
|
||||
this.prfxStatusSpan = 'statusSpan_';
|
||||
// text preceding status bar label
|
||||
this.prfxStatusTxt = 'statusText_';
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
init(){
|
||||
var tf = this.tf;
|
||||
if(!tf.hasGrid() && !tf.isFirstLoad){
|
||||
return;
|
||||
}
|
||||
|
||||
//status bar container
|
||||
var statusDiv = Dom.create('div', ['id', this.prfxStatus+tf.id]);
|
||||
statusDiv.className = this.statusBarCssClass;
|
||||
|
||||
//status bar label
|
||||
var statusSpan = Dom.create('span', ['id', this.prfxStatusSpan+tf.id]);
|
||||
//preceding text
|
||||
var statusSpanText = Dom.create('span',
|
||||
['id', this.prfxStatusTxt+tf.id]);
|
||||
statusSpanText.appendChild(Dom.text(this.statusBarText));
|
||||
|
||||
// target element container
|
||||
if(!this.statusBarTgtId){
|
||||
tf.setToolbar();
|
||||
}
|
||||
var targetEl = (!this.statusBarTgtId) ?
|
||||
tf.lDiv : Dom.id(this.statusBarTgtId);
|
||||
|
||||
//default container: 'lDiv'
|
||||
if(!this.statusBarTgtId){
|
||||
statusDiv.appendChild(statusSpanText);
|
||||
statusDiv.appendChild(statusSpan);
|
||||
targetEl.appendChild(statusDiv);
|
||||
} else {
|
||||
// custom container, no need to append statusDiv
|
||||
targetEl.appendChild(statusSpanText);
|
||||
targetEl.appendChild(statusSpan);
|
||||
}
|
||||
|
||||
this.statusBarDiv = statusDiv;
|
||||
this.statusBarSpan = statusSpan;
|
||||
this.statusBarSpanText = statusSpanText;
|
||||
|
||||
}
|
||||
|
||||
message(t=''){
|
||||
var tf = this.tf;
|
||||
if(!tf.statusBar || !this.statusBarSpan){
|
||||
return;
|
||||
}
|
||||
if(this.onBeforeShowMsg){
|
||||
this.onBeforeShowMsg.call(null, this.tf, t);
|
||||
}
|
||||
|
||||
var d = t==='' ? this.statusBarCloseDelay : 1;
|
||||
global.setTimeout(() => {
|
||||
this.statusBarSpan.innerHTML = t;
|
||||
if(this.onAfterShowMsg){
|
||||
this.onAfterShowMsg.call(null, this.tf, t);
|
||||
}
|
||||
}, d);
|
||||
}
|
||||
|
||||
destroy(){
|
||||
var tf = this.tf;
|
||||
if(!tf.hasGrid() || !this.statusBarDiv){
|
||||
return;
|
||||
}
|
||||
|
||||
this.statusBarDiv.innerHTML = '';
|
||||
this.statusBarDiv.parentNode.removeChild(this.statusBarDiv);
|
||||
this.statusBarSpan = null;
|
||||
this.statusBarSpanText = null;
|
||||
this.statusBarDiv = null;
|
||||
}
|
||||
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,183 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../../">
|
||||
<title data-ice="title">src/modules/store.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/modules/store.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Cookie from '../cookie';
|
||||
|
||||
export class Store{
|
||||
|
||||
/**
|
||||
* Store, persistence manager
|
||||
* @param {Object} tf TableFilter instance
|
||||
*
|
||||
* TODO: use localStorage and fallback to cookie persistence
|
||||
*/
|
||||
constructor(tf) {
|
||||
var f = tf.config();
|
||||
|
||||
this.duration = !isNaN(f.set_cookie_duration) ?
|
||||
parseInt(f.set_cookie_duration, 10) : 100000;
|
||||
|
||||
this.tf = tf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Store filters' values in cookie
|
||||
* @param {String} cookie name
|
||||
*/
|
||||
saveFilterValues(name){
|
||||
var tf = this.tf;
|
||||
var fltValues = [];
|
||||
//store filters' values
|
||||
for(var i=0; i<tf.fltIds.length; i++){
|
||||
var value = tf.getFilterValue(i);
|
||||
if (value === ''){
|
||||
value = ' ';
|
||||
}
|
||||
fltValues.push(value);
|
||||
}
|
||||
//adds array size
|
||||
fltValues.push(tf.fltIds.length);
|
||||
|
||||
//writes cookie
|
||||
Cookie.write(
|
||||
name,
|
||||
fltValues.join(tf.separator),
|
||||
this.duration
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve filters' values from cookie
|
||||
* @param {String} cookie name
|
||||
* @return {Array}
|
||||
*/
|
||||
getFilterValues(name){
|
||||
var flts = Cookie.read(name);
|
||||
var rgx = new RegExp(this.tf.separator, 'g');
|
||||
// filters' values array
|
||||
return flts.split(rgx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store page number in cookie
|
||||
* @param {String} cookie name
|
||||
*/
|
||||
savePageNb(name){
|
||||
Cookie.write(
|
||||
name,
|
||||
this.tf.feature('paging').currentPageNb,
|
||||
this.duration
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve page number from cookie
|
||||
* @param {String} cookie name
|
||||
* @return {String}
|
||||
*/
|
||||
getPageNb(name){
|
||||
return Cookie.read(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store page length in cookie
|
||||
* @param {String} cookie name
|
||||
*/
|
||||
savePageLength(name){
|
||||
Cookie.write(
|
||||
name,
|
||||
this.tf.feature('paging').resultsPerPageSlc.selectedIndex,
|
||||
this.duration
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve page length from cookie
|
||||
* @param {String} cookie name
|
||||
* @return {String}
|
||||
*/
|
||||
getPageLength(name){
|
||||
return Cookie.read(name);
|
||||
}
|
||||
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,92 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../">
|
||||
<title data-ice="title">src/sort.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/sort.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">import Str from './string';
|
||||
|
||||
export default {
|
||||
ignoreCase(a, b){
|
||||
let x = Str.lower(a);
|
||||
let y = Str.lower(b);
|
||||
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
||||
}
|
||||
};
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,122 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../">
|
||||
<title data-ice="title">src/string.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/string.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">/**
|
||||
* String utilities
|
||||
*/
|
||||
|
||||
export default {
|
||||
|
||||
lower(text){
|
||||
return text.toLowerCase();
|
||||
},
|
||||
|
||||
upper(text){
|
||||
return text.toUpperCase();
|
||||
},
|
||||
|
||||
trim(text){
|
||||
if (text.trim){
|
||||
return text.trim();
|
||||
}
|
||||
return text.replace(/^\s*|\s*$/g, '');
|
||||
},
|
||||
|
||||
isEmpty(text){
|
||||
return this.trim(text) === '';
|
||||
},
|
||||
|
||||
rgxEsc(text){
|
||||
let chars = /[-\/\\^$*+?.()|[\]{}]/g;
|
||||
let escMatch = '\\$&';
|
||||
return String(text).replace(chars, escMatch);
|
||||
},
|
||||
|
||||
matchCase(text, mc){
|
||||
if(!mc){
|
||||
return this.lower(text);
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
};
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load diff
|
@ -1,154 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="../../">
|
||||
<title data-ice="title">src/types.js | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1 data-ice="title">src/types.js</h1>
|
||||
<pre class="source-code line-number"><code class="prettyprint linenums" data-ice="content">/**
|
||||
* Types utilities
|
||||
*/
|
||||
|
||||
const UNDEFINED = void 0;
|
||||
|
||||
export default {
|
||||
/**
|
||||
* Check if argument is an object or a global object
|
||||
* @param {String or Object} v
|
||||
* @return {Boolean}
|
||||
*/
|
||||
isObj(v){
|
||||
let isO = false;
|
||||
if(typeof v === 'string'){
|
||||
if(window[v] && typeof window[v] === 'object'){
|
||||
isO = true;
|
||||
}
|
||||
} else {
|
||||
if(v && typeof v === 'object'){
|
||||
isO = true;
|
||||
}
|
||||
}
|
||||
return isO;
|
||||
},
|
||||
|
||||
/**
|
||||
* Check if argument is a function
|
||||
* @param {Function} fn
|
||||
* @return {Boolean}
|
||||
*/
|
||||
isFn(fn){
|
||||
return (fn && fn.constructor == Function);
|
||||
},
|
||||
|
||||
/**
|
||||
* Check if argument is an array
|
||||
* @param {Array} obj
|
||||
* @return {Boolean}
|
||||
*/
|
||||
isArray(obj){
|
||||
return (obj && obj.constructor == Array);
|
||||
},
|
||||
|
||||
/**
|
||||
* Determine if argument is undefined
|
||||
* @param {Any} o
|
||||
* @return {Boolean}
|
||||
*/
|
||||
isUndef(o){
|
||||
return o === UNDEFINED;
|
||||
},
|
||||
|
||||
/**
|
||||
* Determine if argument is null
|
||||
* @param {Any} o
|
||||
* @return {Boolean}
|
||||
*/
|
||||
isNull(o){
|
||||
return o === null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Determine if argument is empty (undefined, null or empty string)
|
||||
* @param {Any} o
|
||||
* @return {Boolean}
|
||||
*/
|
||||
isEmpty(o){
|
||||
return this.isUndef(o) || this.isNull(o) || o.length===0;
|
||||
}
|
||||
};
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,568 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl">
|
||||
<title data-ice="title">Index | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1>Identifier</h1>
|
||||
<div data-ice="classSummary"><h2>Class Summary</h2><table class="summary" data-ice="summary">
|
||||
<thead><tr><td data-ice="title" colspan="3">Static Public Class Summary</td></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ice="target">
|
||||
<td>
|
||||
<span class="access" data-ice="access">public</span>
|
||||
|
||||
|
||||
|
||||
<span class="override" data-ice="override"></span>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>
|
||||
<span data-ice="name"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></span>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB |
172
doc/index.html
172
doc/index.html
|
@ -1,172 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl">
|
||||
<title data-ice="title">TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><div data-ice="index"><h1 id="tablefilter-build-status-https-api-travis-ci-org-koalyptus-tablefilter-svg-branch-master-https-travis-ci-org-koalyptus-tablefilter-">TableFilter <a href="https://travis-ci.org/koalyptus/TableFilter"><img src="https://api.travis-ci.org/koalyptus/TableFilter.svg?branch=master" alt="Build Status"></a></h1>
|
||||
<blockquote>
|
||||
<p>A Javascript library making HTML tables filterable</p>
|
||||
</blockquote>
|
||||
<p>TableFilter is a modernised version of the <a href="http://tablefilter.free.fr">HTML Table Filter generator</a> javascript plugin.
|
||||
This library adds to any html table a "filter by column" feature that enables
|
||||
users to filter and limit the data displayed within a long table. By default, the script automatically adds a filter grid bar at the top of the desired table.</p>
|
||||
<h2 id="features">Features</h2>
|
||||
<ul>
|
||||
<li>Convert a regular HTML table into an advanced grid component providing:<ul>
|
||||
<li>Advanced columns filtering model</li>
|
||||
<li>Sorting and pagination facilities</li>
|
||||
<li>Complete selection model (<a href="http://codecanyon.net/item/ezedittable-enhance-html-tables/2425123">ezEditTable</a> extension)</li>
|
||||
<li>Extended keyboard navigation (<a href="http://codecanyon.net/item/ezedittable-enhance-html-tables/2425123">ezEditTable</a> extension)</li>
|
||||
<li>Inline cell or row editing (<a href="http://codecanyon.net/item/ezedittable-enhance-html-tables/2425123">ezEditTable</a> extension)</li>
|
||||
<li>Row insertion or deleting (<a href="http://codecanyon.net/item/ezedittable-enhance-html-tables/2425123">ezEditTable</a> extension)</li>
|
||||
<li>And even more behaviors...</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Attach to an existing HTML table</li>
|
||||
<li>Integration with any server-side technology as this is a pure client-side
|
||||
solution</li>
|
||||
<li>Callbacks for all events, and delegates for most actions</li>
|
||||
<li>Exhaustive documentation and API</li>
|
||||
<li>Valuable support provided under a Premium request</li>
|
||||
</ul>
|
||||
<h2 id="getting-started">Getting started</h2>
|
||||
<p>Clone the repo using Git:</p>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint">git clone --bare https://github.com/koalyptus/TableFilter.git</code></pre>
|
||||
</code></pre>
|
||||
<p>Alternatively you can <a href="https://github.com/koalyptus/TableFilter/archive/master.zip">download</a> this repository.</p>
|
||||
<h2 id="setup">Setup</h2>
|
||||
<p>Copy the <code>tablefilter</code> directory under <code>dist</code> and place it at desired location in your project. Then include the main js file in your page:</p>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint"><script src="path/to/my/scripts/tablefilter/tablefilter.js"></script></code></pre>
|
||||
</code></pre>
|
||||
<p>Place the following snippet just under the HTML table and always define a <code>base_path</code> property in the configuration object to reflect the path to the script</p>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint"><script>
|
||||
var tf = new TableFilter('my-table-id', {
|
||||
base_path: 'path/to/my/scripts/tablefilter/'
|
||||
});
|
||||
tf.init();
|
||||
</script></code></pre>
|
||||
</code></pre>
|
||||
<p>If the <code>base_path</code> property is not specified, it will default to <code>/tablefilter</code> directory:</p>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint">your-page.html
|
||||
|— tablefilter</code></pre>
|
||||
</code></pre>
|
||||
<h2 id="development">Development</h2>
|
||||
<p>This project requires node.js and Grunt to be installed:</p>
|
||||
<ul>
|
||||
<li>install <a href="https://nodejs.org/">node.js</a></li>
|
||||
<li>install <a href="http://gruntjs.com/getting-started">Grunt</a> from the command line using npm (comes with node.js):<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint">npm install -g grunt-cli</code></pre>
|
||||
</code></pre>
|
||||
Once <code>Grunt</code> is sorted out you can follow the instructions below.
|
||||
Start by installing any dependencies.</li>
|
||||
</ul>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint">npm install</code></pre>
|
||||
</code></pre>
|
||||
<p>Use the Grunt <code>dev</code> task to launch a build / watch cycle and start the local
|
||||
sever on port <code>8080</code>:</p>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint">grunt dev</code></pre>
|
||||
</code></pre>
|
||||
<p>Use the <code>build</code> task to generate a production build:</p>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint">grunt build</code></pre>
|
||||
</code></pre>
|
||||
<p>The <code>default</code> Grunt task will create a production build, run the tests and finally generate the demos:</p>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint">grunt</code></pre>
|
||||
</code></pre>
|
||||
<p>To run all the tests:</p>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint">grunt test</code></pre>
|
||||
</code></pre>
|
||||
<p>and to run specific test(s):</p>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint">grunt test-only:test.html
|
||||
grunt test-only:test.html,test-sort.html</code></pre>
|
||||
</code></pre>
|
||||
<h2 id="demos">Demos</h2>
|
||||
<p>Run the local webserver:</p>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint">grunt server</code></pre>
|
||||
</code></pre>
|
||||
<p>then pick a demo from:</p>
|
||||
<pre><code class="lang-shell"><pre class="source-code"><code class="prettyprint">http://localhost:8080/demos/</code></pre>
|
||||
</code></pre>
|
||||
<h2 id="documentation">Documentation</h2>
|
||||
<p>Find the complete documentation in the <a href="https://github.com/koalyptus/TableFilter/wiki">WIKI</a> section.</p>
|
||||
<h2 id="support">Support</h2>
|
||||
<ul>
|
||||
<li>GitHub for reporting bugs and feature requests.</li>
|
||||
</ul>
|
||||
<h2 id="license">License</h2>
|
||||
<p><a href="LICENSE.md">MIT</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,28 +0,0 @@
|
|||
(function(){
|
||||
function toggle(ev) {
|
||||
var button = ev.target;
|
||||
var parent = ev.target.parentElement;
|
||||
while(parent) {
|
||||
if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break;
|
||||
parent = parent.parentElement;
|
||||
}
|
||||
|
||||
if (!parent) return;
|
||||
|
||||
var tbody = parent.querySelector('tbody');
|
||||
if (button.classList.contains('opened')) {
|
||||
button.classList.remove('opened');
|
||||
button.classList.add('closed');
|
||||
tbody.style.display = 'none';
|
||||
} else {
|
||||
button.classList.remove('closed');
|
||||
button.classList.add('opened');
|
||||
tbody.style.display = 'block';
|
||||
}
|
||||
}
|
||||
|
||||
var buttons = document.querySelectorAll('.inherited-summary thead .toggle');
|
||||
for (var i = 0; i < buttons.length; i++) {
|
||||
buttons[i].addEventListener('click', toggle);
|
||||
}
|
||||
})();
|
|
@ -1,18 +0,0 @@
|
|||
// inner link(#foo) can not correctly scroll, because page has fixed header,
|
||||
// so, I manually scroll.
|
||||
(function(){
|
||||
function adjust() {
|
||||
window.scrollBy(0, -55);
|
||||
var el = document.querySelector('.inner-link-active');
|
||||
if (el) el.classList.remove('inner-link-active');
|
||||
|
||||
var el = document.querySelector(location.hash);
|
||||
if (el) el.classList.add('inner-link-active');
|
||||
}
|
||||
|
||||
window.addEventListener('hashchange', adjust);
|
||||
|
||||
if (location.hash) {
|
||||
setTimeout(adjust, 0);
|
||||
}
|
||||
})();
|
|
@ -1,8 +0,0 @@
|
|||
(function(){
|
||||
if (location.protocol === 'file:') {
|
||||
var elms = document.querySelectorAll('a[href="./"]');
|
||||
for (var i = 0; i < elms.length; i++) {
|
||||
elms[i].href = './index.html';
|
||||
}
|
||||
}
|
||||
})();
|
|
@ -1,202 +0,0 @@
|
|||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
|
@ -1,28 +0,0 @@
|
|||
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
|
||||
(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
|
||||
[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"-"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.push([j,d]);d<65||j>122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<b.length;++c)i=b[c],i[0]<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=["["];o&&b.push("^");b.push.apply(b,a);for(c=0;c<
|
||||
f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c<b;++c){var j=f[c];j==="("?++i:"\\"===j.charAt(0)&&(j=+j.substring(1))&&j<=i&&(d[j]=-1)}for(c=1;c<d.length;++c)-1===d[c]&&(d[c]=++t);for(i=c=0;c<b;++c)j=f[c],j==="("?(++i,d[i]===void 0&&(f[c]="(?:")):"\\"===j.charAt(0)&&
|
||||
(j=+j.substring(1))&&j<=i&&(f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c<b;++c)j=f[c],a=j.charAt(0),j.length>=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<d;++p){var g=a[p];if(g.ignoreCase)l=!0;else if(/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){s=!0;l=!1;break}}for(var r=
|
||||
{b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(""+g);n.push("(?:"+y(g)+")")}return RegExp(n.join("|"),l?"gi":"g")}function M(a){function m(a){switch(a.nodeType){case 1:if(e.test(a.className))break;for(var g=a.firstChild;g;g=g.nextSibling)m(g);g=a.nodeName;if("BR"===g||"LI"===g)h[s]="\n",t[s<<1]=y++,t[s++<<1|1]=a;break;case 3:case 4:g=a.nodeValue,g.length&&(g=p?g.replace(/\r\n?/g,"\n"):g.replace(/[\t\n\r ]+/g," "),h[s]=g,t[s<<1]=y,y+=g.length,
|
||||
t[s++<<1|1]=a)}}var e=/(?:^|\s)nocode(?:\s|$)/,h=[],y=0,t=[],s=0,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=document.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);m(a);return{a:h.join("").replace(/\n$/,""),c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(typeof b===
|
||||
"string")c=!1;else{var i=h[f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];break}o||(b="pln")}if((c=b.length>=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
|
||||
l=[],p={},d=0,g=e.length;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
|
||||
q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
|
||||
q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
|
||||
"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
|
||||
a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
|
||||
for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g<d.length;++g)e(d[g]);m===(m|0)&&d[0].setAttribute("value",
|
||||
m);var r=s.createElement("OL");r.className="linenums";for(var n=Math.max(0,m-1|0)||0,g=0,z=d.length;g<z;++g)l=d[g],l.className="L"+(g+n)%10,l.firstChild||l.appendChild(s.createTextNode("\xa0")),r.appendChild(l);a.appendChild(r)}function k(a,m){for(var e=m.length;--e>=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*</.test(m)?"default-markup":"default-code";return A[a]}function E(a){var m=
|
||||
a.g;try{var e=M(a.h),h=e.a;a.a=h;a.c=e.c;a.d=0;C(m,h)(a);var k=/\bMSIE\b/.test(navigator.userAgent),m=/\n/g,t=a.a,s=t.length,e=0,l=a.c,p=l.length,h=0,d=a.e,g=d.length,a=0;d[g]=s;var r,n;for(n=r=0;n<g;)d[n]!==d[n+2]?(d[r++]=d[n++],d[r++]=d[n++]):n+=2;g=r;for(n=r=0;n<g;){for(var z=d[n],f=d[n+1],b=n+2;b+2<=g&&d[b+1]===f;)b+=2;d[r++]=z;d[r++]=f;n=b}for(d.length=r;h<p;){var o=l[h+2]||s,c=d[a+2]||s,b=Math.min(o,c),i=l[h+1],j;if(i.nodeType!==1&&(j=t.substring(e,b))){k&&(j=j.replace(m,"\r"));i.nodeValue=
|
||||
j;var u=i.ownerDocument,v=u.createElement("SPAN");v.className=d[a+1];var x=i.parentNode;x.replaceChild(v,i);v.appendChild(i);e<o&&(l[h+1]=i=u.createTextNode(t.substring(b,o)),x.insertBefore(i,v.nextSibling))}e=b;e>=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
|
||||
"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
|
||||
H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
|
||||
J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
|
||||
I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),
|
||||
["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",
|
||||
/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),
|
||||
["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",
|
||||
hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p<h.length&&l.now()<e;p++){var n=h[p],k=n.className;if(k.indexOf("prettyprint")>=0){var k=k.match(g),f,b;if(b=
|
||||
!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p<h.length?setTimeout(m,
|
||||
250):a&&a()}for(var e=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],h=[],k=0;k<e.length;++k)for(var t=0,s=e[k].length;t<s;++t)h.push(e[k][t]);var e=q,l=Date;l.now||(l={now:function(){return+new Date}});var p=0,d,g=/\blang(?:uage)?-([\w.]+)(?!\S)/;m()};window.PR={createSimpleLexer:x,registerLangHandler:k,sourceDecorator:u,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",
|
||||
PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}})();
|
|
@ -1,12 +0,0 @@
|
|||
(function(){
|
||||
prettyPrint();
|
||||
var lines = document.querySelectorAll('.prettyprint.linenums li[class^="L"]');
|
||||
for (var i = 0; i < lines.length; i++) {
|
||||
lines[i].id = 'lineNumber' + (i + 1);
|
||||
}
|
||||
|
||||
if (location.hash) {
|
||||
var line = document.querySelector(location.hash);
|
||||
if (line) line.classList.add('active');
|
||||
}
|
||||
})();
|
|
@ -1,117 +0,0 @@
|
|||
(function(){
|
||||
var searchIndex = window.esdocSearchIndex;
|
||||
var searchBox = document.querySelector('.search-box');
|
||||
var input = document.querySelector('.search-input');
|
||||
var result = document.querySelector('.search-result');
|
||||
var selectedIndex = -1;
|
||||
var prevText;
|
||||
|
||||
// active search box and focus when mouse enter on search box.
|
||||
searchBox.addEventListener('mouseenter', function(){
|
||||
searchBox.classList.add('active');
|
||||
input.focus();
|
||||
});
|
||||
|
||||
// search with text when key is upped.
|
||||
input.addEventListener('keyup', function(ev){
|
||||
var text = ev.target.value.toLowerCase();
|
||||
if (!text) {
|
||||
result.style.display = 'none';
|
||||
result.innerHTML = '';
|
||||
return;
|
||||
}
|
||||
|
||||
if (text === prevText) return;
|
||||
prevText = text;
|
||||
|
||||
var html = {class: [], method: [], member: [], function: [], variable: [], typedef: [], external: [], file: [], test: [], testFile: []};
|
||||
var len = searchIndex.length;
|
||||
var kind;
|
||||
for (var i = 0; i < len; i++) {
|
||||
var pair = searchIndex[i];
|
||||
if (pair[0].indexOf(text) !== -1) {
|
||||
kind = pair[3];
|
||||
html[kind].push('<li><a href="' + pair[1] + '">' + pair[2] + '</a></li>');
|
||||
}
|
||||
}
|
||||
|
||||
var innerHTML = '';
|
||||
for (kind in html) {
|
||||
var list = html[kind];
|
||||
if (!list.length) continue;
|
||||
innerHTML += '<li class="search-separator">' + kind + '</li>\n' + list.join('\n');
|
||||
}
|
||||
result.innerHTML = innerHTML;
|
||||
if (innerHTML) result.style.display = 'block';
|
||||
selectedIndex = -1;
|
||||
});
|
||||
|
||||
// down, up and enter key are pressed, select search result.
|
||||
input.addEventListener('keydown', function(ev){
|
||||
if (ev.keyCode === 40) {
|
||||
// arrow down
|
||||
var current = result.children[selectedIndex];
|
||||
var selected = result.children[selectedIndex + 1];
|
||||
if (selected && selected.classList.contains('search-separator')) {
|
||||
var selected = result.children[selectedIndex + 2];
|
||||
selectedIndex++;
|
||||
}
|
||||
|
||||
if (selected) {
|
||||
if (current) current.classList.remove('selected');
|
||||
selectedIndex++;
|
||||
selected.classList.add('selected');
|
||||
}
|
||||
} else if (ev.keyCode === 38) {
|
||||
// arrow up
|
||||
var current = result.children[selectedIndex];
|
||||
var selected = result.children[selectedIndex - 1];
|
||||
if (selected && selected.classList.contains('search-separator')) {
|
||||
var selected = result.children[selectedIndex - 2];
|
||||
selectedIndex--;
|
||||
}
|
||||
|
||||
if (selected) {
|
||||
if (current) current.classList.remove('selected');
|
||||
selectedIndex--;
|
||||
selected.classList.add('selected');
|
||||
}
|
||||
} else if (ev.keyCode === 13) {
|
||||
// enter
|
||||
var current = result.children[selectedIndex];
|
||||
if (current) {
|
||||
var link = current.querySelector('a');
|
||||
if (link) location.href = link.href;
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
ev.preventDefault();
|
||||
});
|
||||
|
||||
// select search result when search result is mouse over.
|
||||
result.addEventListener('mousemove', function(ev){
|
||||
var current = result.children[selectedIndex];
|
||||
if (current) current.classList.remove('selected');
|
||||
|
||||
var li = ev.target;
|
||||
while (li) {
|
||||
if (li.nodeName === 'LI') break;
|
||||
li = li.parentElement;
|
||||
}
|
||||
|
||||
if (li) {
|
||||
selectedIndex = Array.prototype.indexOf.call(result.children, li);
|
||||
li.classList.add('selected');
|
||||
}
|
||||
});
|
||||
|
||||
// clear search result when body is clicked.
|
||||
document.body.addEventListener('click', function(ev){
|
||||
selectedIndex = -1;
|
||||
result.style.display = 'none';
|
||||
result.innerHTML = '';
|
||||
});
|
||||
|
||||
})();
|
File diff suppressed because it is too large
Load diff
|
@ -1,54 +0,0 @@
|
|||
(function(){
|
||||
function toggle(ev) {
|
||||
var button = ev.target;
|
||||
var parent = ev.target.parentElement;
|
||||
while(parent) {
|
||||
if (parent.tagName === 'TR' && parent.classList.contains('test-describe')) break;
|
||||
parent = parent.parentElement;
|
||||
}
|
||||
|
||||
if (!parent) return;
|
||||
|
||||
var direction;
|
||||
if (button.classList.contains('opened')) {
|
||||
button.classList.remove('opened');
|
||||
button.classList.add('closed');
|
||||
direction = 'closed';
|
||||
} else {
|
||||
button.classList.remove('closed');
|
||||
button.classList.add('opened');
|
||||
direction = 'opened';
|
||||
}
|
||||
|
||||
var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1;
|
||||
var nextElement = parent.nextElementSibling;
|
||||
while (nextElement) {
|
||||
var depth = parseInt(nextElement.dataset.testDepth, 10);
|
||||
if (depth >= targetDepth) {
|
||||
if (direction === 'opened') {
|
||||
if (depth === targetDepth) nextElement.style.display = '';
|
||||
} else if (direction === 'closed') {
|
||||
nextElement.style.display = 'none';
|
||||
var innerButton = nextElement.querySelector('.toggle');
|
||||
if (innerButton && innerButton.classList.contains('opened')) {
|
||||
innerButton.classList.remove('opened');
|
||||
innerButton.classList.add('closed');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
nextElement = nextElement.nextElementSibling;
|
||||
}
|
||||
}
|
||||
|
||||
var buttons = document.querySelectorAll('.test-summary tr.test-describe .toggle');
|
||||
for (var i = 0; i < buttons.length; i++) {
|
||||
buttons[i].addEventListener('click', toggle);
|
||||
}
|
||||
|
||||
var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]');
|
||||
for (var i = 0; i < topDescribes.length; i++) {
|
||||
topDescribes[i].style.display = '';
|
||||
}
|
||||
})();
|
340
doc/source.html
340
doc/source.html
|
@ -1,340 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base data-ice="baseUrl" href="">
|
||||
<title data-ice="title">Source | TableFilter v0.0.0 API Document</title>
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
|
||||
<script src="script/prettify/prettify.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body class="layout-container">
|
||||
|
||||
<header>
|
||||
<a href="./">Home</a>
|
||||
<a href="identifiers.html">Identifier</a>
|
||||
<a href="source.html">Source</a>
|
||||
|
||||
<a data-ice="repoURL" href="https://github.com/koalyptus/TableFilter.git" class="repo-url-github">Repository</a>
|
||||
<div class="search-box">
|
||||
<span>
|
||||
<img src="./image/search.png">
|
||||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
|
||||
</span>
|
||||
<ul class="search-result"></ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="navigation" data-ice="nav"><div data-ice="classWrap">
|
||||
<h2>Class</h2>
|
||||
<ul>
|
||||
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></li>
|
||||
<li data-ice="classDoc"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="content" data-ice="content"><h1>Source <span class="esdoc-coverage" data-ice="coverageBadge"><a href="https://esdoc.org" class="esdoc-coverage-wrap">
|
||||
<span class="esdoc-coverage-label">document</span><span class="esdoc-coverage-ratio esdoc-coverage-low">24%</span>
|
||||
</a></span><span data-ice="totalCoverageCount" class="total-coverage-count">157/643</span></h1>
|
||||
|
||||
<table class="files-summary" data-ice="files" data-use-coverage="true">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>File</td>
|
||||
<td>Identifier</td>
|
||||
<td class="coverage">Document</td>
|
||||
<td style="display: none;">Size</td>
|
||||
<td style="display: none;">Lines</td>
|
||||
<td style="display: none;">Updated</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/array.js.html">src/array.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers">-</td>
|
||||
<td class="coverage"><span data-ice="coverage">-</span></td>
|
||||
<td style="display: none;" data-ice="size">711 byte</td>
|
||||
<td style="display: none;" data-ice="lines">26</td>
|
||||
<td style="display: none;" data-ice="updated">2014-11-07 21:47:18 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/cookie.js.html">src/cookie.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers">-</td>
|
||||
<td class="coverage"><span data-ice="coverage">-</span></td>
|
||||
<td style="display: none;" data-ice="size">1513 byte</td>
|
||||
<td style="display: none;" data-ice="lines">58</td>
|
||||
<td style="display: none;" data-ice="updated">2014-11-07 21:47:18 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/date.js.html">src/date.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers">-</td>
|
||||
<td class="coverage"><span data-ice="coverage">-</span></td>
|
||||
<td style="display: none;" data-ice="size">5891 byte</td>
|
||||
<td style="display: none;" data-ice="lines">172</td>
|
||||
<td style="display: none;" data-ice="updated">2014-11-07 21:47:18 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/dom.js.html">src/dom.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers">-</td>
|
||||
<td class="coverage"><span data-ice="coverage">-</span></td>
|
||||
<td style="display: none;" data-ice="size">4013 byte</td>
|
||||
<td style="display: none;" data-ice="lines">142</td>
|
||||
<td style="display: none;" data-ice="updated">2014-11-07 21:09:30 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/event.js.html">src/event.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers">-</td>
|
||||
<td class="coverage"><span data-ice="coverage">-</span></td>
|
||||
<td style="display: none;" data-ice="size">1352 byte</td>
|
||||
<td style="display: none;" data-ice="lines">53</td>
|
||||
<td style="display: none;" data-ice="updated">2014-11-07 05:24:29 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/extensions/advancedGrid/adapterEzEditTable.js.html">src/extensions/advancedGrid/adapterEzEditTable.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html">AdapterEzEditTable</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">26 %</span><span data-ice="coverageCount" class="coverage-count">4/15</span></td>
|
||||
<td style="display: none;" data-ice="size">15700 byte</td>
|
||||
<td style="display: none;" data-ice="lines">375</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:37 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/extensions/advancedGrid/advancedGrid.js.html">src/extensions/advancedGrid/advancedGrid.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers">-</td>
|
||||
<td class="coverage"><span data-ice="coverage">-</span></td>
|
||||
<td style="display: none;" data-ice="size">92 byte</td>
|
||||
<td style="display: none;" data-ice="lines">2</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:37 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/extensions/colOps/colOps.js.html">src/extensions/colOps/colOps.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/extensions/colOps/colOps.js~ColOps.html">ColOps</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">22 %</span><span data-ice="coverageCount" class="coverage-count">2/9</span></td>
|
||||
<td style="display: none;" data-ice="size">12494 byte</td>
|
||||
<td style="display: none;" data-ice="lines">315</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:37 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/extensions/colsVisibility/colsVisibility.js.html">src/extensions/colsVisibility/colsVisibility.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html">ColsVisibility</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">17 %</span><span data-ice="coverageCount" class="coverage-count">10/58</span></td>
|
||||
<td style="display: none;" data-ice="size">17919 byte</td>
|
||||
<td style="display: none;" data-ice="lines">521</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:37 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/extensions/filtersVisibility/filtersVisibility.js.html">src/extensions/filtersVisibility/filtersVisibility.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html">FiltersVisibility</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">15 %</span><span data-ice="coverageCount" class="coverage-count">5/33</span></td>
|
||||
<td style="display: none;" data-ice="size">6024 byte</td>
|
||||
<td style="display: none;" data-ice="lines">184</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:37 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/extensions/sort/adapterSortabletable.js.html">src/extensions/sort/adapterSortabletable.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html">AdapterSortableTable</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">14 %</span><span data-ice="coverageCount" class="coverage-count">4/28</span></td>
|
||||
<td style="display: none;" data-ice="size">15818 byte</td>
|
||||
<td style="display: none;" data-ice="lines">465</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:37 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/extensions/sort/sort.js.html">src/extensions/sort/sort.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers">-</td>
|
||||
<td class="coverage"><span data-ice="coverage">-</span></td>
|
||||
<td style="display: none;" data-ice="size">206 byte</td>
|
||||
<td style="display: none;" data-ice="lines">8</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:37 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/helpers.js.html">src/helpers.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers">-</td>
|
||||
<td class="coverage"><span data-ice="coverage">-</span></td>
|
||||
<td style="display: none;" data-ice="size">456 byte</td>
|
||||
<td style="display: none;" data-ice="lines">23</td>
|
||||
<td style="display: none;" data-ice="updated">2014-11-07 21:47:18 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/alternateRows.js.html">src/modules/alternateRows.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/alternateRows.js~AlternateRows.html">AlternateRows</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">45 %</span><span data-ice="coverageCount" class="coverage-count">5/11</span></td>
|
||||
<td style="display: none;" data-ice="size">2459 byte</td>
|
||||
<td style="display: none;" data-ice="lines">99</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:38 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/checkList.js.html">src/modules/checkList.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/checkList.js~CheckList.html">CheckList</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">22 %</span><span data-ice="coverageCount" class="coverage-count">5/22</span></td>
|
||||
<td style="display: none;" data-ice="size">15363 byte</td>
|
||||
<td style="display: none;" data-ice="lines">421</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:38 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/clearButton.js.html">src/modules/clearButton.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/clearButton.js~ClearButton.html">ClearButton</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">25 %</span><span data-ice="coverageCount" class="coverage-count">3/12</span></td>
|
||||
<td style="display: none;" data-ice="size">2685 byte</td>
|
||||
<td style="display: none;" data-ice="lines">89</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:38 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/dropdown.js.html">src/modules/dropdown.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/dropdown.js~Dropdown.html">Dropdown</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">26 %</span><span data-ice="coverageCount" class="coverage-count">4/15</span></td>
|
||||
<td style="display: none;" data-ice="size">12365 byte</td>
|
||||
<td style="display: none;" data-ice="lines">342</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:38 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/gridLayout.js.html">src/modules/gridLayout.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/gridLayout.js~GridLayout.html">GridLayout</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">11 %</span><span data-ice="coverageCount" class="coverage-count">3/27</span></td>
|
||||
<td style="display: none;" data-ice="size">13481 byte</td>
|
||||
<td style="display: none;" data-ice="lines">356</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:38 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/help.js.html">src/modules/help.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/help.js~Help.html">Help</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">15 %</span><span data-ice="coverageCount" class="coverage-count">3/19</span></td>
|
||||
<td style="display: none;" data-ice="size">5240 byte</td>
|
||||
<td style="display: none;" data-ice="lines">148</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:39 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/highlightKeywords.js.html">src/modules/highlightKeywords.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/highlightKeywords.js~HighlightKeyword.html">HighlightKeyword</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">50 %</span><span data-ice="coverageCount" class="coverage-count">4/8</span></td>
|
||||
<td style="display: none;" data-ice="size">3871 byte</td>
|
||||
<td style="display: none;" data-ice="lines">107</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:39 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/loader.js.html">src/modules/loader.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/loader.js~Loader.html">Loader</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">7 %</span><span data-ice="coverageCount" class="coverage-count">1/14</span></td>
|
||||
<td style="display: none;" data-ice="size">2901 byte</td>
|
||||
<td style="display: none;" data-ice="lines">92</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:39 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/paging.js.html">src/modules/paging.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/paging.js~Paging.html">Paging</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">22 %</span><span data-ice="coverageCount" class="coverage-count">14/62</span></td>
|
||||
<td style="display: none;" data-ice="size">27469 byte</td>
|
||||
<td style="display: none;" data-ice="lines">780</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:39 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/popupFilter.js.html">src/modules/popupFilter.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/popupFilter.js~PopupFilter.html">PopupFilter</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">33 %</span><span data-ice="coverageCount" class="coverage-count">9/27</span></td>
|
||||
<td style="display: none;" data-ice="size">7837 byte</td>
|
||||
<td style="display: none;" data-ice="lines">230</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:39 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/rowsCounter.js.html">src/modules/rowsCounter.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/rowsCounter.js~RowsCounter.html">RowsCounter</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">5 %</span><span data-ice="coverageCount" class="coverage-count">1/18</span></td>
|
||||
<td style="display: none;" data-ice="size">4609 byte</td>
|
||||
<td style="display: none;" data-ice="lines">135</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:39 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/statusBar.js.html">src/modules/statusBar.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/statusBar.js~StatusBar.html">StatusBar</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">5 %</span><span data-ice="coverageCount" class="coverage-count">1/18</span></td>
|
||||
<td style="display: none;" data-ice="size">3715 byte</td>
|
||||
<td style="display: none;" data-ice="lines">120</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:39 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/modules/store.js.html">src/modules/store.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/modules/store.js~Store.html">Store</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">70 %</span><span data-ice="coverageCount" class="coverage-count">7/10</span></td>
|
||||
<td style="display: none;" data-ice="size">2335 byte</td>
|
||||
<td style="display: none;" data-ice="lines">100</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:39 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/sort.js.html">src/sort.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers">-</td>
|
||||
<td class="coverage"><span data-ice="coverage">-</span></td>
|
||||
<td style="display: none;" data-ice="size">196 byte</td>
|
||||
<td style="display: none;" data-ice="lines">9</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:39 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/string.js.html">src/string.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers">-</td>
|
||||
<td class="coverage"><span data-ice="coverage">-</span></td>
|
||||
<td style="display: none;" data-ice="size">686 byte</td>
|
||||
<td style="display: none;" data-ice="lines">39</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:39 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/tablefilter.js.html">src/tablefilter.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers"><span><a href="class/src/tablefilter.js~TableFilter.html">TableFilter</a></span></td>
|
||||
<td class="coverage"><span data-ice="coverage">30 %</span><span data-ice="coverageCount" class="coverage-count">72/237</span></td>
|
||||
<td style="display: none;" data-ice="size">99819 byte</td>
|
||||
<td style="display: none;" data-ice="lines">2750</td>
|
||||
<td style="display: none;" data-ice="updated">2015-03-06 09:12:47 (UTC)</td>
|
||||
</tr>
|
||||
<tr data-ice="file">
|
||||
<td data-ice="filePath"><span><a href="file/src/types.js.html">src/types.js</a></span></td>
|
||||
<td data-ice="identifier" class="identifiers">-</td>
|
||||
<td class="coverage"><span data-ice="coverage">-</span></td>
|
||||
<td style="display: none;" data-ice="size">1503 byte</td>
|
||||
<td style="display: none;" data-ice="lines">71</td>
|
||||
<td style="display: none;" data-ice="updated">2015-07-07 13:09:39 (UTC)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.1.4)</span></a>
|
||||
</footer>
|
||||
|
||||
<script src="script/search_index.js"></script>
|
||||
<script src="script/search.js"></script>
|
||||
<script src="script/pretty-print.js"></script>
|
||||
<script src="script/inherited-summary.js"></script>
|
||||
<script src="script/test-summary.js"></script>
|
||||
<script src="script/inner-link.js"></script>
|
||||
<script src="script/patch-for-local.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue