in most of the simple cases where you just wrap an element inside a widget
like that, then you keep using the element as element not as a widget,
things should work, but if you at some point needs a widget like
interaction between wrapped widgets where the widget will expect a correct
wiring
>
> So, where I can expect problems to start manifesting?
>
I think if you can make sure that you only put elemental2 based components
into GWT widgets, then it should work without major issues. But if you have
to add a GWT widget into an elemental2 based component, then you have the
On 21. 06. 2020. 08:55, Vegegoku wrote:
sorry, i meant to say : That will *NOT* do the required wiring
On Saturday, June 20, 2020 at 1:55:20 PM UTC+3, Vegegoku wrote:
That will do the required wiring to make elements behave like widgets,
it will not wire events correctly nor it will
sorry, i meant to say : That will *NOT* do the required wiring
On Saturday, June 20, 2020 at 1:55:20 PM UTC+3, Vegegoku wrote:
>
> That will do the required wiring to make elements behave like widgets, it
> will not wire events correctly nor it will wire the attach/detach, you can
> do it but
That will do the required wiring to make elements behave like widgets, it will
not wire events correctly nor it will wire the attach/detach, you can do it but
it is not a simple task, thats why elemento moved the issue the lib user
instead of solving it in the lib itself.
--
You received this
On 17. 06. 2020. 14:46, Frank Hossfeld wrote:
Please take a look here: https://gitter.im/hal/elemento for more information
and here: https://github.com/hal/elemento/issues/82
I've found elemento-widget before, but wasn't sure if it's still relevant.
This commit says it's abandoned:
On 17. 06. 2020. 13:35, Jens wrote:
But keep in mind that GWT widgets have been rewritten to be J2CL compatible
(they use jsinterop internally now and in the future might be changed to use
elemental2 dom elements). So it is not an urgent need to switch, unless you
really want to.
Nice to
Please take a look here: https://gitter.im/hal/elemento for more
information and here: https://github.com/hal/elemento/issues/82
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it,
Something like (totally untested) might work:
class WidgetAdapter extends Widget {
WidgetAdapter(elemental2.dom.Element element) {
setElement(Js.uncheckedCast(element
));
}
}
But keep in mind that GWT widgets have been rewritten to be J2CL compatible
(they use jsinterop internally