You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type
clickHandler*=proc():VNodevar view* :clickHandler
procclick*(x : clickHandler): proc() =result=proc() = view = x
procechartSection():VNode=buildHtmltdiv(id ="echartSection", style =style((width, kstring"600px"), (height, kstring"400px")))
proccreateDom(data: RouterData): VNode=let hash = data.hashPart
if hash ==cstring"#/Products": currentView =Productselse: currentView =Customersresult=buildHtml(tdiv):
ul(class ="tabs"):
for v inlow(Views)..high(Views):
li:
if v ==Products:
a(href ="#/"&$v, onclick =click echartSection):
textkstring($v)
else:
a(href ="#/"&$v):
textkstring($v)
tdiv:
text"other section"setRenderer createDom, "ROOT", postRender
setForeignNodeId"echartSection"
got
Uncaught Error: Initialize failed: invalid dom.
at Object.init (echarts.js:1778)
at Object.post_render_256045 [as postRenderCallback] (echartstest.js:3454)
at dodraw_249631 (echartstest.js:2870)
at HEX3Aanonymous_251001 (echartstest.js:2913)
The text was updated successfully, but these errors were encountered:
gogolxdong
changed the title
foreign node issue with click routing
echarttest foreign node issue with click routing
Dec 21, 2018
gogolxdong
changed the title
echarttest foreign node issue with click routing
echartstest foreign node issue with click routing
Dec 21, 2018
got
The text was updated successfully, but these errors were encountered: