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

24 lines
586 B
HTML
Raw Normal View History

2014-08-27 00:01:15 +00:00
<link rel="import" href="../controller-base/controller-base.html">
<script src="controller-boolean.js"></script>
<polymer-element name="controller-boolean" extends="controller-base">
<template>
2014-09-03 18:47:32 +00:00
<link rel="stylesheet" href="../shared/input.css">
2014-08-27 00:01:15 +00:00
<link rel="stylesheet" href="controller-boolean.css">
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>