dat.gui/elements/gui-panel/gui-panel.html

30 lines
769 B
HTML
Raw Normal View History

2014-08-27 00:01:15 +00:00
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../gui-row/gui-row.html">
<polymer-element
name="gui-panel"
attributes="docked autoplace open">
<template>
<link rel="stylesheet" href="gui-panel.css">
2014-09-03 18:47:32 +00:00
<div id="container" class="docked-{{ docked }} autoplace-{{ autoPlace }} open-{{ open }} touch-{{ touch }}">
2014-08-27 00:01:15 +00:00
<div id="controllers">
<content></content>
</div>
<div id="closeButton" on-tap="{{ tapClose }}" hidden?="{{ docked }}">{{ open ? 'Close' : 'Open' }} Controls</div>
<div id="closeButtonDocked" on-tap="{{ tapClose }}" hidden?="{{ !docked }}">
<div id="closeButtonDockedInner"></div>
</div>
</div>
</template>
<script src="gui-panel.js"></script>
</polymer-element>