-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathstyling.html
51 lines (46 loc) · 1.11 KB
/
styling.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Grid.js Vue Component Test</title>
<script src="https://unpkg.com/vue"></script>
</head>
<body>
<div id="app"></div>
<script type="module">
import CssStyle from './styling/css-style.mjs'
import CssClassName from './styling/css-class-name.mjs'
import CssInJs from './styling/css-in-js.mjs'
new window.Vue({
el: '#app',
name: 'GridTestStyling',
components: {
CssStyle,
CssClassName,
CssInJs
},
template: `
<div>
<div>
<h2>CSS Style</h2>
<css-style></css-style>
</div>
<div>
<h2>CSS ClassName</h2>
<css-class-name></css-class-name>
</div>
<div>
<h2>CSS-in-JS</h2>
<css-in-js></css-in-js>
</div>
</div>
`
})
</script>
<style>
.gridjs-td.my-custom-td-class {
background-color: blue !important;
color: white !important;
}
</style>
</body>
</html>