Hi everyone, can someone tell me how to change the textcolor of layers I've created in the Design view? I want to change the color in an onClick event.
You can’t (yet). You’ll have to make a Text Layer in code.
+1 for this, and changing the text. Doesn't look like it can be done but I had some success setting states and new HTML for text but I had to restyle everything manually (using dynamic attributes pulled from the layer)
Clunky but seems to work. Animating that seems to be impossible though.
Annoying they put this feature in but you can't use it in the way you need to
Try a «print layer.html» of text created in Code -> it contains a lot more than other layers: some divs, the CSS styling, etc. They’ll probably get around to making them more interactive in the future.
Yeah, when you change the .html on these Design text layers you override their styling.
...as workaround I duplicated Text layer with another color and switch visibility. But really not an efficient solution.