forked from IgniteUI/igniteui-angular-wrappers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
250 lines (217 loc) · 8.09 KB
/
index.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<!DOCTYPE html>
<html>
<head>
<title>IgniteUI Angular 2 Samples</title>
<!-- Ignite UI Required Combined CSS Files -->
<link href="http://cdn-na.infragistics.com/igniteui/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
<link href="http://cdn-na.infragistics.com/igniteui/latest/css/structure/infragistics.css" rel="stylesheet" />
<!-- 1. Load libraries -->
<script src="http://code.jquery.com/jquery-1.12.3.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<!-- IE required polyfills, in this exact order -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.35.0/es6-shim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.20/system-polyfills.js"></script>
<script src="https://unpkg.com/angular2/es6/dev/src/testing/shims_for_IE.js"></script>
<script src="https://unpkg.com/[email protected]?main=browser"></script>
<script src="https://unpkg.com/[email protected]/lib/typescript.js"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]/dist/system.src.js"></script>
<script src="./systemjs.config.js"></script>
<!-- Ignite UI Required Combined JavaScript Files -->
<script src="http://cdn-na.infragistics.com/igniteui/latest/js/infragistics.core.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/latest/js/infragistics.lob.js"></script>
<link type="text/css" rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="samples/sample.css" />
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script>
System.import('app/boot.ts')
.then(null, console.error.bind(console));
</script>
<style>
.links a, .links button {
font-size: 1.75em;
color:#999;
margin:.75em .75em 0 0;
}
.billboard {
background: url(samples/images/home-background.jpg) no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
color:#fff;
background-color: #aa8c68;
border-bottom: 10px solid #d16717;
min-height: 600px;
}
.billboard .row {
margin: 1em;
}
.lead {
margin-top:1em;
}
@media only screen and (min-width:641px){
.lead {
margin-top:0;
}
.billboard .lead {
font-size: 1.2em;
text-transform: uppercase;
}
.billboard .row {
margin:0;
margin-top: 1em;
}
.billboard h1 {
font-size: 6em;
margin-bottom:0;
}
.billboard h2 {
font-size: 2.5em;
margin-top: 0;
}
}
</style>
</head>
<!-- 3. Display the application -->
<body>
<div class="billboard">
<div class="container">
<div class="row">
<a href="http://www.igniteui.com" target="_blank"><img src="http://www.igniteui.com/images/headerIcon.PNG" style="width: 200px" /></a>
</div>
<div class="row">
<div class="col-sm-12 col-lg-5">
<h1>Ignite UI</h1>
<h2>Angular 2 Components</h2>
</div>
<div class="col-sm-12 header-fg col-lg-7"></div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-12 col-lg-6">
<h2>Live sample...</h2>
<my-app>Loading...</my-app>
</div>
<div class="col-sm-12 col-lg-6">
<h2>Code...</h2>
<div style="height: 511px; overflow-y: scroll;">
<pre>
import { Component } from '@angular/core';
declare var jQuery: any;
@Component({
selector: "my-app",
template: `
<ig-grid
[(options)]="gridOptions"
[(widgetId)]="id"
(cellClick)="cellClickHandler($event)"
(rendering)="renderedEventHandler($event)"
></ig-grid>
`
})
export class AppComponent {
private gridOptions: IgGrid;
private cellClickHandler: any;
private renderedEventHandler:any;
private data: Array<any>;
private id: string = "grid1";
constructor() {
this.data = [/* data omitted */];
this.cellClickHandler= function(ui){
console.log("grid cell click event fired");
};
this.renderedEventHandler= function(ui){
console.log("grid rendered event fired");
};
this.gridOptions = {
dataSource: this.data,
width: "100%",
primaryKey: "ProductID",
autoCommit: true,
autoGenerateColumns: false,
columns: [
{ "headerText": "Product ID", "key": "ProductID", "dataType": "number", "width": "10%" },
{ "headerText": "Name", "key": "ProductName", "dataType": "string", "width": "40%" },
{ "headerText": "Quantity per unit", "key": "QuantityPerUnit", "dataType": "string", "width": "25%" },
{ "headerText": "Unit Price", "key": "UnitPrice", "dataType": "string", "width": "25%" }
],
features: [{
name: "Updating",
columnSettings: [{
columnKey: "ProductID",
readOnly: true
}]
}, {
name: "Paging",
pageSize: 10
}, {
name: "Filtering"
}, {
name: "Sorting"
}]
};
}
}
</pre>
</div>
</div>
</div>
<hr />
<h2>Samples</h2>
<div class="links">
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
igGrid <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="samples/igGrid/igGrid.html">Default</a></li>
<li><a href="samples/igGrid-TopLevelOpts/igGrid-TopLevelOpts.html">Top-level template options</a></li>
<li><a href="samples/igGrid-ComplexOpts/igGrid-ComplexOpts.html">Complex template options</a></li>
<li><a href="samples/igGrid-HTTPClient/igGrid-HTTPClient.html">Grid with HTTP client</a></li>
<li><a href="samples/igGrid-callingMethods/igGrid-callingMethods.html">Calling API methods</a></li>
<li><a href="samples/igGrid-AoT/igGrid-AoT.html">Grid AoT</a></li>
</ul>
</div>
<a class="btn btn-default" href="samples/igHierarchicalGrid/igHierarchicalGrid.html">igHierarchicalGrid</a>
<a class="btn btn-default" href="samples/igTreeGrid/igTreeGrid.html">igTreeGrid</a>
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
igPivotGrid <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="samples/igPivotGrid-FlatDataSource/igPivotGrid-FlatDataSource.html">igPivotGrid with Flat Data Source</a></li>
<li><a href="samples/igPivotGrid-XmlaDataSource/igPivotGrid-XmlaDataSource.html">igPivotGrid with Xmla Data Source</a></li>
</ul>
</div>
<a class="btn btn-default" href="samples/igCombo/igCombo.html">igCombo</a>
<a class="btn btn-default" href="samples/igDataChart/igDataChart.html">igDataChart</a>
<a class="btn btn-default" href="samples/igDialog/igDialog.html">igDialog</a>
<a class="btn btn-default" href="samples/igEditors/igEditors.html">igEditors</a>
<a class="btn btn-default" href="samples/igHtmlEditor/igHtmlEditor.html">igHtmlEditor</a>
<a class="btn btn-default" href="samples/igLayoutManager/igLayoutManager.html">igLayoutManager</a>
<a class="btn btn-default" href="samples/igTileManager/igTileManager.html">igTileManager</a>
<a class="btn btn-default" href="samples/igMap/igMap.html">igMap</a>
<a class="btn btn-default" href="samples/igTree/igTree.html">igTree</a>
<a class="btn btn-default" href="samples/igUpload/igUpload.html">igUpload</a>
<a class="btn btn-default" href="samples/igVideoPlayer/igVideoPlayer.html">igVideoPlayer</a>
</div>
<div class="push-down-md">
<a href="https://github.com/IgniteUI/igniteui-angular2" class="btn btn-default btn-primary btn-lg"><i class="fa fa-github"></i> View source on GitHub</a>
</div>
</div>
<footer>
<div class="container">
<div class="row">
<div class="col-sm-12">
<p><a href="https://github.com/IgniteUI/igniteui-angular2/issues">Feedback & Questions</a></p>
<p class="small">For more information or to download a trial of Ignite UI, please visit: <a href="http://www.igniteui.com">http://www.igniteui.com</a></p>
</div>
</div>
</div>
</footer>
</body>
</html>