-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkboxgrouptest.html
45 lines (39 loc) · 1.89 KB
/
checkboxgrouptest.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
<html>
<head>
<link rel="stylesheet" type="text/css" href="../static/map/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../static/RowEditor.css" />
<script type="text/javascript" src="../static/map/ext-base.js"></script>
<script type="text/javascript" src="../static/map/ext-all.js"></script>
<script type="text/javascript" src="../static/RowEditor.js"></script>
<script type="text/javascript" src="../static/Extvalidation.js"></script>
<script type="text/javascript" src="../static/ComboCheckBoxGroup.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
var group = new ComboCheckboxGroup({
renderTo:'checkTest',
id:'myGroup',
fieldLabel: 'Single Column',
itemCls: 'x-check-group-alt',
// Put all controls in a single column with width 100%
columns: 1,
items: [
{boxLabel: 'MySpace', name: 'MySpace'},
{boxLabel: 'Facebook', name: 'Facebook'},
{boxLabel: 'Hi5', name: 'Hi5'},
{boxLabel: 'Friendster', name: 'Friendster', checked:true},{boxLabel: 'Orkut', name: 'Orkut'},{boxLabel: 'Bebo', name: 'Bebo'},{boxLabel: 'Tagged', name: 'Tagged'},{boxLabel: 'Xing', name: 'Xing'},{boxLabel: 'Badoo', name: 'Badoo'},{boxLabel: 'Xanga', name: 'Xanga'},{boxLabel: '51.com', name: '51com'},{boxLabel: 'Xiaonei', name: 'Xiaonei'},{boxLabel: 'ChinaRen', name: 'ChinaRen'}
]
});
var other = new Ext.form.TextField({
renderTo:"anotherField"
});
group.setValue('MySpace,Facebook,Orkut,Xing,');
//alert(group.getValue());
});
</script>
</head>
<body>
<h1><i>Checkbox</i> test</h1>
<div id="checkTest" style="position: relative"> </div>
<div id="anotherField"></div>
</body>
</html>