These are chat archives for chandu0101/scalajs-react-components
Hi guys, I'm playing with the scalajs-spa-tutorial project. Just by adding
"com.github.chandu0101.scalajs-react-components" %%% "core" % "0.1.0"
build.scala, I get errors like this:
Now trying to debug why my ReactTable won't draw on the screen.
resolved ? or still an issue …
val theNode = Ref(P.root.item.toString)
<.li(^.ref := theNode, ^.tabIndex := 0, ^.onKeyPress ==> B.onItemSelect, P.style.treeItem,treeMenuToggle, ^.key := "toggle", P.style.treeItemContent)(<.span(S.selected ?=
B.isFilterTextExist(P.filterText,child) ?= TreeNode.withKey(key).withRef(theNode)(P.copy(root = child,depth = depth,parent = parent,open = open,filterText = P.filterText))
I tried to add a ref directly to the component those two ways and then access it from parent component's backend with (backend).refs(refName), but nothing showed up. I also tried adding className "selected" to the selected node in treeview, but when searching for items with class name selected in parent component, it couldn't find anything still.
val topNodeRef = Ref.to(TreeNode,"topnode") TreeNode.withKey("root").withRef("topnode”) //and then in parent backend topNodeRef(t).get.backend will return NodeBackend