summaryrefslogtreecommitdiffstats
path: root/WebContent/statictestfiles/jsconnector.js
blob: 1432c20698af064e4c827066ee7eb78bb3815549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
window.com_vaadin_tests_components_javascriptcomponent_BasicJavaScriptComponent_ExampleWidget = function() {
	var connector = this;
	
	var rootElement = connector.getWidgetElement();
	rootElement.innerHTML = 'Hello world!';
	rootElement.onclick = function() {
		connector.getRpcProxyFunction("com.vaadin.tests.components.javascriptcomponent.BasicJavaScriptComponent$ExampleClickRpc", "onClick")("message");
	}
	connector.onStateChange = function() {
		console.log('state change:', this.getState());
	}
}