This repository has been archived by the owner on Nov 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ds-component-data-tables.html
174 lines (122 loc) · 5.93 KB
/
ds-component-data-tables.html
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="en" dir="ltr">
<meta charset="UTF-8">
<title>DS-42 - Allied Electronics and Automation</title>
<!--DS42 sass-->
<link rel="stylesheet" href="scss/ds-42.css">
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Lato" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="manifest" href="./manifest.json">
<link rel="shortcut icon" href="./images/favicon.ico" />
<link rel="shortcut icon" href="./images/favicon.svg" />
<link rel="icon" type="image/favicon.svg" href="./images/favicon.svg">
<link rel="icon" type="image/x-icon" href="./images/favicon.svg">
<link rel="icon" href="./images/favicon.svg" />
<!--Icon Font-->
<link rel="stylesheet" href="styles/icon-style.css">
<!-- reuse same icon for Safari -->
<link rel="apple-touch-icon" href="./images/app-images/images/icons/icon-192x192.png">
<meta name="Description" content="DS 42 is a design system for Allied Electronics & Automation. It is in it's infancy but it is growing with support.">
<script>
$(function(){
$("#ds42-nav").load("nav.html");
});
</script>
<meta name="theme-color" content="#001d2c"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(function () {
$("#ds42-nav").load("nav.html");
});
</script>
</head>
<body>
<div class="ds42-main-grid">
<!-- Sidebar Holder -->
<a class="toggle open" href="#ds42-nav"><img src="./images/menu.svg" alt="menu icon"/></a>
<div id="ds42-nav">
<!--NAV will display here-->
</div>
<!-- Page Content Holder -->
<div class="prog-bar">
<div class="progress-container">
<div class="progress-bar" id="myBar"></div>
</div>
</div>
<div class="ds42-body">
<!-- Page Content Holder -->
<div class="ds42-body">
<div class="page-grid">
<div class="page-overview green-gradient">
<div class="content-column-left">
<div>
<h2>Data Tables</h2>
<p>Data tables are used to display sets of data using rows and columns so they can easily be scanned. </p>
</div>
<div>
<img alt="Data Tables Overview" class="overview-image" src="./images/components-data-table.svg">
</div>
</div>
</div>
<div class="page-content">
<div>
<h2>Usage</h2>
<p>Data tables are used to organize information in a way that is easily scannable and comparable. They should be used to help the user find needed information in an easily consumable format.</p>
</div>
<div class="content-column-left">
<div>
<h3>The Anatomy of a Data Table</h3>
<ol>
<li>Column Headers</li>
<li>Filters</li>
<li>Deletion</li>
<li>Selection Controls</li>
<li>Pagination</li>
</ol>
</div>
<div>
<img alt="Anatomy of a Data Table" src="./images/data-tables-anatomy.svg"/>
</div>
</div>
<hr>
<div>
<div>
<h3>Code</h3>
<p>When using data tables for the front end of an Allied product simply copy and paste the
html found here. You can also view the CSS to see how it works.</p>
</div>
<div>
<p class="codepen" data-height="301" data-theme-id="light" data-default-tab="result" data-user="cbachelot" data-slug-hash="GVqJVb" style="height: 301px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="Mobile Tables">
<span>See the Pen <a href="https://codepen.io/cbachelot/pen/GVqJVb/">
Mobile Tables</a> by Clark Bachelot (<a href="https://codepen.io/cbachelot">@cbachelot</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// When the user scrolls the page, execute myFunction
window.onscroll = function() {myFunction()};
function myFunction() {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
document.getElementById("myBar").style.width = scrolled + "%";
}
</script>
<script>
if('serviceWorker' in navigator) {
navigator.serviceWorker
.register('/sw.js')
//.then(function() { console.log("Service Worker Registered"); });
.then(reg => {reg.update();});
}
</script>
</body>
</html>