-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-138.html
141 lines (138 loc) · 5.19 KB
/
template-138.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
<h1 id="grid-builder--loader">Grid Builder / Loader</h1>
<h2 id="grid-builder">Grid Builder</h2>
<p>The grid configuration builder provide a quick start way of using grid in your application. This will help new users to getting started with grid easier. You can try with different grid customization and grid extensions with a realtime result, then this configuration can be copy and paste into any application to get the same result as seen from this section.</p>
<code-sandbox hash="c205d3fb"><pre><code class="language-html"><style>
.main-layout {
height: 800px;
display: flex;
}
.content-title {
padding-top: 5px;
padding-bottom: 5px;
font-size: 14px;
}
.main-content {
flex: 1;
display: flex;
flex-direction: column;
}
#grid {
height: 350px;
}
div {
min-height: 24px;
}
hr {
margin-top: 15px;
margin-bottom: 15px;
width: 100%;
}
label {
padding-right: 10px;
}
#configArea {
flex: 1;
width: 100%;
margin-top: 10px;
font-family: monospace;
}
#section-detail{
height: 160px;
overflow-y: scroll;
padding-bottom: 10px;
border: grey solid 1px;
}
.two-columns {
display: grid;
grid-template-columns: 1fr 1fr;
}
.two-columns > *:not(hr) {
padding:2px;
display: flex;
align-items: center;
}
</style>
<ef-sidebar-layout sidebar-width="0px" class="main-layout">
<ef-panel slot="main-content" class="main-content" spacing>
<ef-tab-bar id="tabs"></ef-tab-bar>
<ef-panel spacing>
<div id="section-detail"></div>
</ef-panel>
<efx-grid id="grid"></efx-grid>
<ef-overlay-menu id="menu"></ef-overlay-menu>
<textarea id="configArea"></textarea>
</ef-panel>
</ef-sidebar-layout>
</code></pre>
<pre><code class="language-javascript">import { halo } from './theme-loader.js'; // This line is only required for demo purpose. It is not relevant for your application.
await halo(); // This line is only required for demo purpose. It is not relevant for your application.
/* ---------------------------------- Note ----------------------------------
DataGenerator, Formatters and extensions are exposed to global scope
in the bundle file to make it easier to create live examples.
Importing formatters and extensions is still required in your application.
Please see the document for further information.
---------------------------------------------------------------------------*/
import './resources/grid-builder-app.min.js'
</code></pre>
</code-sandbox><h2 id="grid-loader">Grid Loader</h2>
<p>In this section, you can try to paste your configuration object here to see an live result. This allow user to make advance customization to grid configuration object before using with their real application.</p>
<code-sandbox hash="681c7a3b"><pre><code class="language-css">.main-layout {
height: 800px;
display: flex;
flex-direction: column;
}
.content-title {
padding-top: 5px;
padding-bottom: 5px;
font-size: 14px;
}
.main-content {
flex: 1;
display: flex;
flex-direction: column;
}
#container {
height: 400px;
}
#grid{
height: 100%;
}
div {
min-height: 24px;
}
hr {
margin-top: 15px;
margin-bottom: 15px;
}
#configArea {
width: 100%;
padding-top: 15px;
height: 300px;
margin-bottom: 8px;
font-family: monospace;
}
</code></pre>
<pre><code class="language-html"><ef-sidebar-layout sidebar-width="0px" class="main-layout">
<ef-header slot="main-header" level="1">
<ef-button id="run" icon="play">RUN</ef-icon></ef-button>
</ef-header>
<ef-panel slot="main-content" class="main-content" spacing>
<textarea id="configArea"></textarea>
<div id="container">
<efx-grid id="grid"></efx-grid>
</div>
<ef-overlay-menu id="menu"></ef-overlay-menu>
</ef-panel>
</ef-sidebar-layout>
</code></pre>
<pre><code class="language-javascript">import { halo } from './theme-loader.js'; // This line is only required for demo purpose. It is not relevant for your application.
await halo(); // This line is only required for demo purpose. It is not relevant for your application.
/* ---------------------------------- Note ----------------------------------
DataGenerator, Formatters and extensions are exposed to global scope
in the bundle file to make it easier to create live examples.
Importing formatters and extensions is still required in your application.
Please see the document for further information.
---------------------------------------------------------------------------*/
import './resources/grid-loader-app.min.js'
</code></pre>
</code-sandbox>