Sorry if this is a stupid question, but I'm trying to figure out how to use paper-toggle-buttonit so that the item appears / disappears on my page.
I can make it work just by using onclick, but this is obviously not correct / perfect, and I cannot find any examples on the Internet that it uses (for the Internet).
The switch button is deployed (without onclick='toggleShow'()) as:
<paper-toggle-button onchange={{toggleShow}} checked></paper-toggle-button>
script I tried (and failed):
function toggleShow() {
if (checked: false) {
chart.hide('upload');
} else {
chart.show('upload');
}
}
I'm sure this is a bit of a dumb question, but any help to get me moving in the right direction would be greatly appreciated
source
share