mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
47 lines
1023 B
HTML
47 lines
1023 B
HTML
<link rel="import" href="../dat-gui-base/dat-gui-base.html">
|
|
|
|
<script src="dat-gui-number.js"></script>
|
|
|
|
<polymer-element
|
|
name="dat-gui-number"
|
|
attributes="min max value step"
|
|
extends="dat-gui-base"
|
|
>
|
|
|
|
<template>
|
|
|
|
<link rel="stylesheet" href="../shared/input.css">
|
|
<link rel="stylesheet" href="dat-gui-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-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">
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
</polymer-element> |