Skip to content

Instantly share code, notes, and snippets.

@pphetra
Created June 26, 2013 15:17
Show Gist options
  • Select an option

  • Save pphetra/5868297 to your computer and use it in GitHub Desktop.

Select an option

Save pphetra/5868297 to your computer and use it in GitHub Desktop.
Ext.create('Ext.form.Panel', {
title: 'Checkbox Group',
width: 300,
height: 125,
bodyPadding: 10,
renderTo: Ext.get('cbg'),
items: [{
xtype: 'checkboxgroup',
fieldLabel: 'Two Columns',
// Arrange checkboxes into two columns, distributed vertically
columns: 2,
vertical: true,
items: [{
boxLabel: 'Item 1',
name: 'rb',
inputValue: '1'
}, {
boxLabel: 'Item 2',
name: 'rb',
inputValue: '2',
checked: true
}, {
boxLabel: 'Item 3',
name: 'rb',
inputValue: '3'
}, {
boxLabel: 'Item 4',
name: 'rb',
inputValue: '4'
}, {
boxLabel: 'Item 5',
name: 'rb',
inputValue: '5'
}, {
boxLabel: 'Item 6',
name: 'rb',
inputValue: '6'
}]
}]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment