Directory

← Back

ace-widget

ace-widget for vaadin flow 14+

Author

Contributors

Rating

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");

Compatibility

(Loading compatibility data...)

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

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....
Released
2021-02-03
Maturity
BETA
License
MIT License

Compatibility

Framework
Vaadin 14+
Browser
N/A

ace-widget - Vaadin Add-on Directory

ace-widget for vaadin flow 14+ ace-widget - Vaadin Add-on Directory
Online