50 lines
1.3 KiB
HTML
50 lines
1.3 KiB
HTML
<link rel='import' href='../../bower_components/polymer/polymer.html'>
|
|
|
|
<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout-classes.html">
|
|
|
|
<link rel="import" href="../../bower_components/paper-button/paper-button.html">
|
|
|
|
<link rel="import" href="../components/entity/state-info.html">
|
|
|
|
<dom-module id='state-card-configurator'>
|
|
<template>
|
|
<style is="custom-style" include="iron-flex iron-flex-alignment"></style>
|
|
<style>
|
|
paper-button {
|
|
color: var(--default-primary-color);
|
|
font-weight: 500;
|
|
top: 3px;
|
|
height: 37px;
|
|
margin-right: -.57em;
|
|
}
|
|
</style>
|
|
|
|
<div class='horizontal justified layout'>
|
|
<state-info state-obj="[[stateObj]]" in-dialog='[[inDialog]]'></state-info>
|
|
<paper-button hidden$='[[inDialog]]'>[[stateObj.state]]</paper-button>
|
|
</div>
|
|
|
|
<!-- pre load the image so the dialog is rendered the proper size -->
|
|
<template is='dom-if' if='[[stateObj.attributes.description_image]]'>
|
|
<img hidden src='[[stateObj.attributes.description_image]]' />
|
|
</template>
|
|
</template>
|
|
</dom-module>
|
|
|
|
<script>
|
|
Polymer({
|
|
is: 'state-card-configurator',
|
|
|
|
properties: {
|
|
inDialog: {
|
|
type: Boolean,
|
|
value: false,
|
|
},
|
|
|
|
stateObj: {
|
|
type: Object,
|
|
},
|
|
},
|
|
});
|
|
</script>
|