Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var widgets = require('@jupyter-widgets/base');
var controls = require('@jupyter-widgets/controls');
require("./style.css");
var _ = require('lodash');
var $ = require('jquery');
var FocusTextView = controls.TextView.extend({
events: function () {
var d = FocusTextView.__super__.events(this, arguments);
d['click input'] = 'handleFocus';
return d;
}
});
FocusTextView.prototype.handleFocus = function(e) {
this.send({ event: 'click' });
};
module.exports = {
FocusTextView: FocusTextView
};