Button Dropdowns See documentation

Creating a dropdown button act as creating buttons.

$btn = Html::button_dropdown('#', 'My dropdown', array('status' => 'primary'));

Instead of returning a Button instance, you'll get a Dropdown instance, so...

...Check the Dropdown's documentation to learn how to play with Dropdowns !
The split key allow you to create splited buttons:
$btn = Html::button_dropdown('#', 'My dropdown', array('split' => true))
The type key alow you to define dropup or classic dropdown ('up' and 'down'):
$btn = Html::button_dropdown('#', 'My Dropup', array('type' => 'up'))
The align key will forge dropdown menu aligment:
$btn = Html::button_dropdown('#', 'My Dropup', array('type' => 'up'))

Finally, we can build a Christmas dropdown button:

// nested list
$nest = Html::dropdown();
$nest->item('#', 'messages', 'inbox');
$nest->item('#', 'logout', 'off');

// dropdown
$btn = Html::button_dropdown('#', "Don't Do This !", array(
	'split' => true,
	'status'=> 'warning',
	'icon'	=> 'warning-sign'
));
$btn->item('#', 'Home', 'home');
$btn->item('#', 'Pages', 'file');
$btn->item('#', 'Account', 'cog')->nest($nest);