aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent/statictestfiles/jsconnector.js
blob: a87df92bc83970fa8004fb7c945d0356d405ffd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
window.com_vaadin_tests_components_javascriptcomponent_BasicJavaScriptComponent_ExampleWidget = function() {
	var connector = this;
	
	var rootElement = connector.getElement();
	rootElement.innerHTML = 'Hello world!';
	rootElement.onclick = function() {
		connector.getRpcProxy().onClick("message");
		connector.onclick("another message");
	}
	connector.onStateChange = function() {
		console.log('state change:', this.getState());
	}
}