forked from olegtaranenko/bryntum-quiz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
question-9.html
executable file
·40 lines (35 loc) · 986 Bytes
/
question-9.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
<!DOCTYPE html>
<html>
<head>
<title>Bryntum Quiz ** Q 9</title>
<script type="text/javascript" src="http://cdn.sencha.com/ext-4.1.1-gpl/ext-all-debug.js"></script>
<script type="text/javascript" src="plugin.js"></script>
</head>
<body>
<div id="quiz9"></div>
</body>
<script type="text/javascript">
Ext.onReady(function() {
var body = Ext.getBody();
var myGrid = new Ext.grid.Panel({
columns : [
{
text : 'foo'
}
],
store : new Ext.data.Store({
fields : ['foo'],
proxy : 'memory'
}),
plugins : new MyGridPlugin()
// case 1. load event happens immediatelly
// ,renderTo: body
});
myGrid.store.load([
{ foo : 'bar' }
]);
// case 2. load event async and highlighting is fired via 'afterrender' handler
myGrid.render(body);
})
</script>
</html>