-
16 May 2007 10:58 AM #1
form like inbox email
form like inbox email
How can I create a form like this
-
16 May 2007 5:25 PM #2
Except for the expanding groups (I think this is on the feature request list) you can achieve this with a grid.
You could use this example for your general layout.
http://extjs.com/deploy/ext/examples/grid/paging.html
You can use the custom render functions to add checkboxes etc
PHP Code:function renderCheckbox(value, cell, record) {
helper = Ext.DomHelper.append(cell, {tag: 'input', type: 'checkbox'}, true);
box = new Ext.form.Checkbox({...});
box.applyTo(helper);
box.setValue(record.data.someVal);
box.on('check', function() { record.data.someVal = this.getValue() }
return "";
}
-
17 May 2007 9:26 AM #3
-
19 May 2007 2:08 AM #4
-
20 May 2007 4:49 AM #5
This is just some scratch, not the exact code. but it should help you a bit, you should pass the renderCheckbox function to your columnmodel (see the example link):
PHP Code:var cm = new Ext.grid.ColumnModel([{
header: "Check Collumn",
dataIndex: 'read',
width: 420,
renderer: renderCheckbox,
}
...
-
20 May 2007 1:01 PM #6
what code I must post insede here
box = new Ext.form.Checkbox({...});
-
21 May 2007 2:46 AM #7
-
21 May 2007 7:25 AM #8
-
21 May 2007 7:31 AM #9
Check some examples on how ext works.
As you can see the manual states "Checkbox(Object config)" This mean you can pass an object with the configuration variables as listed at the bottom of that page. for example Checkbox({fieldClass: 'my-custom-css-class'));
In this case I dont think you need any options since the defaults will do just fine.


Reply With Quote