Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="ember: sliding drawers">
  <meta charset="utf-8">
  <title>JS Bin</title>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script src="//builds.emberjs.com/tags/v1.11.0/ember-template-compiler.js"></script>
  <script src="//builds.emberjs.com/tags/v1.11.0/ember.debug.js"></script>
</head>
<body>
  <script type="text/x-handlebars" data-template-name="application">
    <h1>Animated Drawer Demo</h1>
    {{drawer-menu}}
  </script>
  <script type="text/x-handlebars" data-template-name="components/drawer-menu">
    <div class="overlay">
      
      <button
        {{action "toggle"}}>Drawer</button>
      
      <label>
        {{input type="checkbox" checked=shouldRenderElement}}
        shouldRenderElement
      </label>
      <label>
        {{input type="checkbox" checked=isOpen}}
        isOpen
      </label>
    </div>
    <div class="sliding-panel">
      {{#if shouldRenderElement}}
        {{drawer-contents}}
      {{/if}}      
    </div>
  </script>
  <script type="text/x-handlebars" data-template-name="components/drawer-contents">
    <h2>Items in this drawer:</h2>
    <ul>
      <li>Item 1</li>
      <li>Item 2</li>
    </ul>
  </script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
dbazilepro
0viewers