com.raquo.laminar.receivers.AttrReceiver.scala Maven / Gradle / Ivy
The newest version!
package com.raquo.laminar.receivers
import com.raquo.airstream.core.Observable
import com.raquo.laminar.keys.ReactiveHtmlAttr
import com.raquo.laminar.nodes.ReactiveHtmlElement
import org.scalajs.dom
class AttrReceiver[V](
attr: ReactiveHtmlAttr[V],
element: ReactiveHtmlElement[dom.html.Element]
) {
def <--($value: Observable[V]): Unit = {
(attr <-- $value)(element)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy