This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class VueState extends JavaScriptComponentState { | |
public String message = ""; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@StyleSheet({"colorPicker.css"}) | |
@JavaScript({"vue.js","es6-promise.auto.js", "vuex.js", "bundle.js", "vaadin-injector.js"}) | |
public class VueComponent extends AbstractJavaScriptComponent { | |
private Consumer<Color> onColorChangedConsumer; | |
public VueComponent() { | |
setId("app"); | |
addFunction("onSyncColorPicker", arguments -> { | |
Notification.show("Message from VUE: " + arguments.get(0).asString()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.com_xetics_mes_vue_VueComponent = function () { | |
var container = this.getElement(); | |
var connector = this; | |
var mapState = Vuex.mapState; | |
var model = { | |
message: "" | |
} |