Skip to content

Instantly share code, notes, and snippets.

@alejandro-du
Created February 13, 2018 22:19
Show Gist options
  • Save alejandro-du/d3310ff1272c97b0ce33d404d929452f to your computer and use it in GitHub Desktop.
Save alejandro-du/d3310ff1272c97b0ce33d404d929452f to your computer and use it in GitHub Desktop.
package com.vaadin.starter.skeleton;
import com.vaadin.flow.component.Tag;
import com.vaadin.flow.component.dependency.HtmlImport;
import com.vaadin.flow.component.html.Div;
@Tag("juicy-ace-editor")
@HtmlImport("bower_components/juicy-ace-editor/juicy-ace-editor.html")
public class JuicyAceEditor extends Div {
public void setMode(String mode) {
getElement().setAttribute("mode", mode);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment