Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there any way using gwt canvas in domino-ui other than HTMLCanvasElement

I have a big project using other UI which has a big portion of it using the GWT canvas and if I am thinking to use the domino-ui I prefer to keep the GWT canvas code.

like image 303
Ahmad Bawaneh Avatar asked Jan 01 '26 14:01

Ahmad Bawaneh


1 Answers

Yes you can. Either you use elemental2 canvas, Or you use GWT canvas and wrap it as an element. you need to include this dependency

<dependency>
    <groupId>org.jboss.gwt.elemento</groupId>
    <artifactId>elemento-widget</artifactId>
    <version>${use elemento version here}</version>
</dependency>

Then you can wrap a canvas as element using this

Widgets.asElement(myGwtCanvas)

And don't forget about the inheritance of this GWT module

like image 142
Ahmad Bawaneh Avatar answered Jan 06 '26 23:01

Ahmad Bawaneh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!