Widget
force a parentElement on its domElement
#2098
Unanswered
valentinMachado
asked this question in
Q&A
Replies: 1 comment
-
In the same idea than #2005 my opinion is that the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's not possible to create a
Widget
without a parentElement since parentElement is initialized here and then manipulated there. In my case I want to create a widget then use a generic function that will integrate it in the DOM which is not possible without "hacking" (ie give a parentElement then the line after dowidget.domElement.remove()
.We could keep the actual behavior but just do the difference between
undefined
andnull
meaning when itsundefined
view.domElement
is the parent but when it'snull
no parent is setted.WDYT ?
Beta Was this translation helpful? Give feedback.
All reactions