All Downloads are FREE. Search and download functionalities are using the official Maven repository.

samples.events.input-changed-event.poc Maven / Gradle / Ivy

widget WidgetWithInput extends ReactWidget {

    method getInitalState() {
        return { value: "" };
    }

    method inputChanged(InputChangedEvent event) {
        proposed = event.getProposedText();
        if(proposed.count <= 20)
            setState({value: proposed});
        else
            setState({value: event.getCurrentText()});
    }

	Html method render () {
	    state = getState();
		return ;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy