How to use the @jupyter-widgets/controls.DescriptionView.prototype function in @jupyter-widgets/controls

To help you get started, we’ve selected a few @jupyter-widgets/controls examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bernhard-42 / jupyter-cadquery / js / lib / tree_view.js View on Github external
initialize: function (parameters) {
    DescriptionView.prototype.initialize.apply(this, arguments);

    this.icons = this.model.get("icons");
    // Be sure to work on deep copy, otherwise object will be updated and
    // model.set will not find any differences and nothing will be sent to python!
    this.states = clone(this.model.get("state"));
    this.treeModel = this.toModel(this.model.get("tree"));

    this.listenTo(this.model, "change:state", () => this.updateAllStates());
  },