Flagrate API documentation

Home ▲
class

flagrate.Pulldown

Example

var menu = flagrate.createPulldown({
  label: 'foo',
  items: [
    {
      label: 'bar'
    }
  ]
}).insertTo(x);

Structure

<button class="flagrate flagrate-button flagrate-pulldown">
  "foo"
  <span class="flagrate-pulldown-triangle"></span>
</button>
<div class="flagrate-pulldown-menu flagrate flagrate-menu">
  <button class="flagrate flagrate-button">bar</button>
</div>

menu div are created with flagrate.Menu

Inheritances


Constructor