I'm trying to figure out how to get the visibility of two elements to toggle based on the same variable. Wrapping the elements with isn't an option, since I need to interact with the elements while they're invisible. I tried this, which I found an example of somewhere, but it didn't work, both elements are always visible:
#fieldsList {
display:{{ {none: editing == true, block: editing == false} | tokenList }};
}
#fieldsEdit {
display:{{ {none: editing == false, block: editing == true } | tokenList}};
}
And I tried it by wrapping the CSS in template conditionals, but this also results in both elements being always visible:
<template if="{{ editing == true}}">
#fieldsList {
display: none;
}
</template>
<template if="{{ editing == false}}">
#fieldsEdit {
display: none;
}
</template>
Am I going about this wrong? I'm using Dart 1.7.2 with Polymer 0.15.1+5.