ich so etwas wie dies in Polymer tun möchte ...Polymer 1.0 Eigenschaften Bindungsarten in Vorlage Inline
<dom-module id="logo-standard">
<style>
:host {
display: block;
}
</style>
<template>
<div class="logo-wrap">
<div style="width: {{logoWidth}}px;">
Some awesome logo
</div>
</template>
<script>
(function() {
Polymer({
is: 'logo-standard',
properties: {
logoWidth: {
type: String,
value: '400'
}
}
});
})();
</script>
</dom-module>
das heißt dynamisch ein Element Stil eine Eigenschaft.
Ist das möglich? Wenn das so ist, wie?
Ich habe 1.2 für eine Weile, aber das wusste nicht, ... sehr hilfreich Dank – markstewie