dat.gui/elements/dat-gui-boolean/dat-gui-boolean.html

24 lines
568 B
HTML
Raw Permalink Normal View History

2014-09-09 19:53:30 +00:00
<link rel="import" href="../dat-gui-base/dat-gui-base.html">
2014-08-27 00:01:15 +00:00
2014-09-09 19:53:30 +00:00
<script src="dat-gui-boolean.js"></script>
2014-08-27 00:01:15 +00:00
2014-09-09 19:53:30 +00:00
<polymer-element name="dat-gui-boolean" extends="dat-gui-base">
2014-08-27 00:01:15 +00:00
<template>
2014-09-03 18:47:32 +00:00
<link rel="stylesheet" href="../shared/input.css">
2014-09-09 19:53:30 +00:00
<link rel="stylesheet" href="dat-gui-boolean.css">
2014-08-27 00:01:15 +00:00
2014-09-02 17:13:35 +00:00
<div id="container" horizontal layout center on-tap="{{ toggle }}" class="value-{{ value }}">
<div id="switch-track">
<div id="switch-knob"></div>
</div>
<!-- <div id="text" >{{ value ? 'true' : 'false' }}</div> -->
</div>
2014-08-27 00:01:15 +00:00
</template>
</polymer-element>