Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ui-component-library / dist / inputs / TextBox / handlers / handleChange.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const exotic_1 = require("exotic");
const deps_1 = require("../deps");
/**
 * @extends TextBoxComponent @bound
 */
function handleChange(event, props, state) {
    const { isChecked, value } = deps_1.fromChangeEventToValues(event);
    const { onValueChange } = props;
    console.debug('[input] TextBox.change');
    console.info('{value, isChecked}: ', value, isChecked);
    state.setValue(value);
    if (exotic_1.isFunction(onValueChange)) {
        onValueChange(value, event);
    }
    // extending
    if (exotic_1.isFunction(this.onValueChange)) {
        this.onValueChange(value, event);
    }
}
exports.handleChange = handleChange;
//# sourceMappingURL=handleChange.js.map