class
flagrate.Menu
Example
var menu = flagrate.createMenu({
items: [
{
label: 'foo'
},
{
label: 'bar',
icon : 'icon.png'
},
'--',
{
label: 'disabled button',
isDisabled: true
}
]
}).insertTo(x);
Structure
<div class="flagrate flagrate-menu">
<button class="flagrate flagrate-button">foo</button>
<button class="flagrate flagrate-button flagrate-icon" style="background-image: url(icon.png);">bar</button>
<hr>
<button class="flagrate flagrate-button flagrate-disabled" disabled="disabled">disabled button</button>
</div>
button
elements are created with flagrate.Button