2014-08-27 00:01:15 +00:00
|
|
|
<link rel="import" href="../../../polymer/polymer.html">
|
|
|
|
<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 16:52:28 +00:00
|
|
|
<link rel="stylesheet" href="../shared/controller.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>
|