2014-09-07 20:18:36 +00:00
|
|
|
<link rel="import" href="../controller-base/controller-base.html">
|
|
|
|
|
|
|
|
<script src="controller-option.js"></script>
|
|
|
|
|
2014-09-07 23:55:40 +00:00
|
|
|
<polymer-element name="controller-option" extends="controller-base" attributes="options key">
|
2014-09-07 20:18:36 +00:00
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="controller-option.css">
|
|
|
|
|
|
|
|
<div id="container" horizontal layout center>
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</polymer-element>
|