2014-09-09 19:53:30 +00:00
|
|
|
<link rel="import" href="../dat-gui-base/dat-gui-base.html">
|
2014-09-07 20:18:36 +00:00
|
|
|
|
2014-09-09 19:53:30 +00:00
|
|
|
<script src="dat-gui-option.js"></script>
|
2014-09-07 20:18:36 +00:00
|
|
|
|
2014-09-09 19:53:30 +00:00
|
|
|
<polymer-element name="dat-gui-option" extends="dat-gui-base" attributes="options key">
|
2014-09-07 20:18:36 +00:00
|
|
|
|
|
|
|
<template>
|
|
|
|
|
2014-09-09 19:53:30 +00:00
|
|
|
<link rel="stylesheet" href="dat-gui-option.css">
|
2014-09-07 20:18:36 +00:00
|
|
|
|
|
|
|
<div id="container" horizontal layout center>
|
2014-10-11 19:39:16 +00:00
|
|
|
|
|
|
|
<div class="key">
|
|
|
|
|
|
|
|
<svg viewBox="0 0 10 24">
|
|
|
|
<polygon points="0,9.5 5,0.9 10,9.5 "></polygon>
|
|
|
|
<polygon points="10,16.75 5,24.7 0,16.75 "></polygon>
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
<span>{{ key }}</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2014-09-07 23:55:40 +00:00
|
|
|
<select value="{{ key }}" on-change="{{ change }}">
|
2014-09-07 20:18:36 +00:00
|
|
|
|
2014-09-07 23:55:40 +00:00
|
|
|
<template repeat="{{ name in options | keys }}">
|
|
|
|
<option value="{{ name }}">{{ name }}</option>
|
2014-09-07 20:18:36 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
2014-10-11 19:39:16 +00:00
|
|
|
|
2014-09-07 20:18:36 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</polymer-element>
|