ace-widget
ace-widget for vaadin flow 14+
Ace Editor for Vaadin Flow 14+
If there are bugs or you have a suggestion for the component, you can write to us on GitHub.
Sample code
AceEditor aceEditor = new AceEditor(); aceEditor.setTheme(AceTheme.github); aceEditor.setMode(AceMode.java); aceEditor.setFontSize(15); aceEditor.setHeight("100%"); aceEditor.setWidth("100%"); aceEditor.setReadOnly(false); aceEditor.setShowInvisibles(true); aceEditor.setShowGutter(false); aceEditor.setShowPrintMargin(false); aceEditor.setDisplayIndentGuides(false); aceEditor.setUseWorker(false); aceEditor.addValueChangeListener(e -> { System.out.println(aceEditor.getValue()); }); aceEditor.setSofttabs(false); aceEditor.setTabSize(25); aceEditor.setWrap(false); aceEditor.setMinlines(2); aceEditor.setMaxlines(10); aceEditor.setPlaceholder("DEMO"); aceEditor.setAutoComplete(true); aceEditor.setCustomAutoCompletion(new String[] { "TEST", "TEST2", "TEST3" }); aceEditor.setHighlightActiveLine(false); aceEditor.setHighlightSelectedWord(false); aceEditor.setMinHeight("200px");
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
Updated for Vaadin 24+
- Released
- 2024-02-16
- Maturity
- BETA
- License
- MIT License
Compatibility
- Framework
- Vaadin 24+
- Vaadin 23 in 1.4.5-Beta
- Vaadin 14 in 1.4.5-Beta
- Browser
- Browser Independent
ace-widget - Vaadin Add-on Directory
ace-widget for vaadin flow 14+Source Code
ace-widget version 1.4.5-Beta
Thanks to @F0rce, @ddonges, @desertfox94 for the support. and especially @F0rce to fix various problems and add the new methods in the component.
* Added more methods:
- setShowPrintMargin
- setShowInvisibles
- setShowGutter
- setHighlightActiveLine
- setBasePath
- setAutoComplete
- setLiveAutocompletion
- setDisplayIndentGuides
- setHighlightSelectedWord
- setSelection
- setUseWorker
- setCursorPositio
- setMaxHeight
- setMinHeight
- setMinWidth
- setMaxWidth
* Fixed jumping curso
* performance improvement
* clean imports
* changed some minor things
* Updated Ace Editor to v1.4.12
* height and width (fix)
* updated NPM packages
* updated to Vaadin 14.4.0 (for testing)
ace-widget version 1.0.2
Stable version thanks to David "F0rce"
- removed shared langTools (used for autocompletion) -> now sperate for each instance of the editor
- minor initialization changes
- placeholder QoL changes (not visibile after changing the visibility)
- Bug fixes....
ace-widget version 2.0.0
Updated for Vaadin 24+