I have created a textConfirmation in the plugin, properties.schema. How can i implement an action listener on this textbox for e.g whenever the user key in an input into the textbox or when the user press enter button ?
I have tried
function(ComponentView, Adapt) {
var TextConfirmation = ComponentView.extend({
events: {
'click [type="checkbox"]': 'onConfirmation',
'keyup .component-item input':'onKeyPress'
//This is new Code
}
onKeyPress: function(event) {
if (event.which !== 13) return;
console.log("asd")
}