<!DOCTYPE html>
<html>
  <head>
    <title>Panel and ButtonGroup demo</title>
    <meta charset="utf-8" />
    <script src="../js/lib/require.js" async="async"></script>
    <link type="text/css" rel="stylesheet" href="../css/kalamar.css" />
  </head>
  <body>
    <nav id="mainButton" style="position: absolute; width: 100%; top: 150px"></nav>
  </body>
  <script>
requirejs.config({
  baseUrl: '../js/src',
  paths : {
    'lib': '../lib'
  }
});


require(['buttongroup', 'panel','view'], function (btnClass, panelClass, viewClass) {
  var panel = panelClass.create();
  var actions = panel.actions;
  actions.add('Meta',['meta'], function () {
    console.log(this.button.classList.contains('meta'));
    view = viewClass.create();
    panel.add(view);
  });
  var list = actions.addList('More', ['list']);
  list.readItems([
    ['cool', 'cool', function (e, action) { console.log('really' + this.action()) }],
    ['very cool', 'veryCool', function (e, action) { console.log('very cool') }]
  ]);

  document.getElementById('mainButton').appendChild(panel.element());
});


  </script>
</html>
