Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

airframe-rx-html: Support refreshing DOM elements when attribute value is updated via RxVar #1341

Closed
xerial opened this issue Nov 5, 2020 · 0 comments · Fixed by #1573
Closed
Milestone

Comments

@xerial
Copy link
Member

xerial commented Nov 5, 2020

val color = Rx.variable("white")
div(
  style -> color.map { x => s"color: ${x};" }  // This needs to be updated when color variable is changed
  "message"
)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant