
samples.events.input-changed-event.poc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WebSite Show documentation
Show all versions of WebSite Show documentation
Prompto Documentation Web Site POM
The newest version!
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