Closed stelzzz closed 7 years ago
You cannot bind to style properties directly.
You can, however, handle the set event:
<svidget:param onset="handleLedColorSet">
Then:
function handleLedColorSet(e) {
var ele = document.getElementById("led");
ele.style.fill = e.value; // e.value is value that was set on the param
}
Thank you!
Hello! Help me please! Is it possible to set binding to style property? Example for Inkscape generated element:
I want binding like this: