Show state attributes in default more info dialog
parent
b9a08bb25d
commit
d1ad6f3e65
|
@ -1,2 +1,2 @@
|
||||||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
||||||
VERSION = "7484b7aecbe15593d924b47daf4a89df"
|
VERSION = "b32ea78a1157b29555410384fe251dc9"
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,9 +1,44 @@
|
||||||
<link rel="import" href="../bower_components/polymer/polymer.html">
|
<link rel="import" href="../bower_components/polymer/polymer.html">
|
||||||
|
|
||||||
<polymer-element name="more-info-default" attributes="stateObj" noscript>
|
<polymer-element name="more-info-default" attributes="stateObj">
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<style>
|
||||||
There is no extra info for domain '{{stateObj.domain}}' yet.
|
.data-entry {
|
||||||
</div>
|
margin-bottom: 8px;
|
||||||
</template>
|
}
|
||||||
|
|
||||||
|
.data-entry:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data {
|
||||||
|
padding-left: 10px;
|
||||||
|
text-align: right;
|
||||||
|
word-break: break-all;
|
||||||
|
max-width: 200px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div layout vertical>
|
||||||
|
|
||||||
|
<template repeat="{{key in stateObj.attributes | getKeys}}">
|
||||||
|
<div layout justified horizontal class='data-entry' id='rising'>
|
||||||
|
<div>
|
||||||
|
{{key}}
|
||||||
|
</div>
|
||||||
|
<div class='data'>
|
||||||
|
{{stateObj.attributes[key]}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
Polymer({
|
||||||
|
getKeys: function(obj) {
|
||||||
|
return Object.keys(obj || {});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</polymer-element>
|
</polymer-element>
|
||||||
|
|
Loading…
Reference in New Issue