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

49 lines
1.1 KiB
HTML
Raw Normal View History

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-number.js"></script>
<polymer-element
name="controller-number"
attributes="min max value step"
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-number.css">
<div id="container" class="transition slider-{{ slider }}" horizontal layout center>
<div id="track-container"
on-down="{{ down }}"
on-up="{{ up }}"
on-trackx="{{ trackx }}"
on-tracky="{{ tracky }}"
on-trackstart="{{ trackstart }}"
horizontal layout center
hidden?="{{ !slider }}"
flex>
<div id="track">
<div id="fill"></div>
<div id="knob"></div>
</div>
</div>
<input type="text"
value="{{ truncate( value ) }}"
on-click="{{ click }}"
on-keydown="{{ keydown }}"
on-blur="{{ blur }}"
id="input">
2014-09-03 16:16:11 +00:00
</div>
2014-08-27 00:01:15 +00:00
2014-09-03 16:16:11 +00:00
</template>
2014-08-27 00:01:15 +00:00
</polymer-element>