Spellcheck for Vaadin
Spellcheck AddOn for TextFields
It checks the spelling as you type in a TextField and adds the StyleName spellcheck-error on wrong spelling.
We have not defined this style in the addon, it is left for the user to do it, for example, below style makes the textbox Red on spelling error, you need to add this in your styles.css file
.spellcheck-error { background-color: red !important; }
It comes with preloaded dictionary with option to add few words or use a new dictionary all together, it uses jazzy library for spellcheck. http://jazzy.sourceforge.net/
Sample code
org.hs18.vaadin.spellcheck.SpellCheck spellChecker = new SpellCheck();//Empty constructor usage default dictionary spellChecker.addToDictionary("Vaadin");//optional to add your own words into dictionary TextField textField = new TextField(); spellChecker.addSpellCheck(textField);
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Addon for checking spelling as you type in TextField and change the style of the TextField on spelling error.
- Released
- 2014-01-20
- Maturity
- BETA
- License
- GNU Lesser General Public License v3.0 only
Compatibility
- Framework
- Vaadin 7.0+
- Vaadin 7.1+ in 1.0.2
- Browser
- N/A