I’m using vaddin 20.0.3.
Autocomplete doesn’t work, and also SQL query didn’t get colored as I see in your demo. Could you please direct me in a good direction if there needs to be a special configuration?
Hello there,
First of all make sure to use the latest Version of Ace (at the time of writing 1.3.3
).
To enable autocomplete please use:
yourAceName.setAutoComplete(true)
- to see the autocompletion dialog you have to press strg + space(bar)
. In order to see the autocompletion dialog while typing (without having to press strg + space(bar)
), you need to enable yourAceName.setLiveAutocompletion(true)
aswell.
To color your sql query you simply have to use:
yourAceName.setMode(AceMode.sql)
.
If you have any further questions, I’ll be happy to assist you,
David
Hi, thanks for the plugin !
I have the same issue with vaadin-21.0.3 as well as vaadin-21.0.1
I did an exact copy of the example, syntax coloring seems to be unavailable (with no error)…
Laurent
Hello Laurent,
I haven’t tested the component with Vaadin version 21.0.3 & 21.0.1. I always test it with the latest version of version 14.x.
It could be that in Vaadin version 21.x the frontend sources have to be loaded / included differently.
Sorry about that,
David