Directory

← Back

JuicyAceEditor

juicy-ace-editor for vaadin flow

Author

Rating

Popularity

100+

This add-on is a code editor that supports different programming languages, based on https://www.webcomponents.org/element/Juicy/juicy-ace-editor.

Sample code

		JuicyAceEditor juicyAceEditor = new JuicyAceEditor();
		juicyAceEditor.setValue("demo");
		juicyAceEditor.setTheme(JuicyAceTheme.eclipse);
		juicyAceEditor.setMode(JuicyAceMode.xml);
		juicyAceEditor.setWidth("1000px");
		juicyAceEditor.setHeight("500px");
		juicyAceEditor.setFontsize(15);
		juicyAceEditor.setSofttabs(false);
		juicyAceEditor.setTabsize(15);
		// juicyAceEditor.setReadonly(true);
		// juicyAceEditor.setWrapmode(true);
		// juicyAceEditor.setMaxLines(5);
		// juicyAceEditor.setMinLines(5);
		//juicyAceEditor.setShadowStyle("");
		
		System.out.println("getValue: " + juicyAceEditor.getValue());

		juicyAceEditor.addValueChangeListener(e -> {
			System.out.println("ValueChangeListener: " + e.getValue());
		});

		add(juicyAceEditor);

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

added the focus and blur method

Released
2019-06-26
Maturity
STABLE
License
MIT License

Compatibility

Framework
Vaadin 10+
Vaadin 13 in 1.0.8
Vaadin 12+ in 1.0.6
Vaadin 12 in 1.0.8
Vaadin 11+ in 1.0.5
Vaadin 11 in 1.0.8
Vaadin 10 in 1.0.8
Browser
Firefox
Opera
Google Chrome
iOS Browser
Android Browser
Windows Phone

JuicyAceEditor - Vaadin Add-on Directory

juicy-ace-editor for vaadin flow JuicyAceEditor - Vaadin Add-on Directory
This add-on is a code editor that supports different programming languages, based on https://www.webcomponents.org/element/Juicy/juicy-ace-editor.
Online