Controlgroup Widget
With the Controlgroup Widget, we can group buttons together. Check out the jQuery Mobile Controlgroup Widget for more information.
var content = {};
content['my_controlgroup'] = {
theme: 'controlgroup',
items: [
bl('Hello', 'node/1'),
bl('Goodbye', 'user/logout')
]
};
return content;
Horizontal Grouped Buttons
This is accomplished with the data-type
attribute set to horizontal:
var content = {};
content['my_controlgroup'] = {
theme: 'controlgroup',
items: [
bl('Hello', 'node/1'),
bl('Goodbye', 'user/logout')
],
attributes: {
'data-type': 'horizontal'
}
};
return content;