NAME

Moonshine::Bootstrap::Component::DropdownButton

SYNOPSIS

$self->dropdown_button({ class => "..." });

Options

class

defaults to 'default',

id

dropdown_button **requires** an Id

data_toggle

defaults to dropdown

aria_haspopup

defaults to true

aria_expanded

defaults to true

data

is **required**

split

Create split dropdown button

$self->dropdown_button({ split => 1 });

 <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
    Dropdown
    <span class="caret"></span>
</button> 

Sample Output

<button class="btn btn-default">Dropdown</button>
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
    <span class="caret"></span>
</button>