forked from vaadin/vaadin-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (73 loc) · 2.53 KB
/
index.html
File metadata and controls
86 lines (73 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>vaadin-grid</title>
<script src="../elements-demo-resources/ga.js"></script>
<script src="../webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-component-page/iron-component-page.html">
<link rel="import" href="vaadin-grid.html">
<link rel="import" href="vaadin-grid-selection-column.html">
<link rel="import" href="vaadin-grid-sorter.html">
<link rel="import" href="vaadin-grid-filter.html">
<link rel="import" href="vaadin-grid-column-group.html">
</head>
<body>
<style>
/*
snatched from GitHub, use to style the <kbd> elements in keyboard navigation
documentation in vaadin-grid.html.
*/
kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
</style>
<vaadin-grid-docs></vaadin-grid-docs>
<dom-module id="vaadin-grid-docs">
<template>
<iron-component-page id="docs" src="index.html" on-doc-elements-changed="_filterElements" on-doc-behaviors-changed="_filterBehaviors"></iron-component-page>
</template>
<script>
document.addEventListener('WebComponentsReady', function() {
Polymer({
is: 'vaadin-grid-docs',
_filterBehaviors: function(e) {
if (this._modifyingBehaviors) {
return;
}
this._modifyingBehaviors = true;
this.$.docs._setDocBehaviors(this.$.docs.docBehaviors.filter(function(beh, index) {
// blacklist internal APIs
return !/Polymer|iron|Iron|Table|FocusableCellContainer/.test(beh.is);
}));
this._modifyingBehaviors = false;
},
_filterElements: function(e) {
if (this._modifyingElements) {
return;
}
this._modifyingElements = true;
this.$.docs._setDocElements(this.$.docs.docElements.filter(function(el, index) {
// whitelist public elements
return /vaadin-grid$|column|filter|sorter/.test(el.is);
}));
this._modifyingElements = false;
}
});
});
</script>
</dom-module>
</body>
</html>