Skip to content

Commit

Permalink
rx-html (fix): Add RxElement.renderTo(nodeId) (#3293)
Browse files Browse the repository at this point in the history
This is a workaround for IntelliJ's syntax highlight issue
  • Loading branch information
xerial authored Dec 1, 2023
1 parent c1c622a commit 1e576d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
*/
package wvlet.airframe.rx.html

import org.scalajs.dom.EventTarget

trait HtmlNodeBase { self: HtmlNode =>

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,18 @@ package wvlet.airframe.rx.html
/**
* A trait for adding different methods between Scala JVM and Scala.js
*/
trait HtmlNodeBase {}
trait HtmlNodeBase {

/**
* (Scala.js only) Render this element to the DOM node of the given ID. If the corresponding DOM node is not found,
* this method will create a new DOM node.
*
* @param nodeId
* @return
* A cancelable RxDOMNode
*/
def renderTo(nodeId: String): Unit = {
// Adding this method to Scala JVM as IntelliJ may not recognize this method
???
}
}

0 comments on commit 1e576d9

Please sign in to comment.