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

47 lines
1023 B
HTML
Raw 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-number.js"></script>
2014-08-27 00:01:15 +00:00
<polymer-element
2014-09-09 19:53:30 +00:00
name="dat-gui-number"
2014-08-27 00:01:15 +00:00
attributes="min max value step"
2014-09-09 19:53:30 +00:00
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-number.css">
2014-08-27 00:01:15 +00:00
<div id="container" class="transition slider-{{ slider }}" horizontal layout center>
<div id="track-container"
on-down="{{ down }}"
on-up="{{ up }}"
on-trackx="{{ trackx }}"
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>