docs: function Widget(options) {
    this.__data = {};
    try {
      var e;
      if (typeof options === 'undefined') options = {};
      if (typeof options.innerHTML !== 'undefined' && typeof options.childNodes !== 'undefined') {
        // On passe directement un élément.
        options = {element: options};
      }
      if (typeof options.tag === 'undefined') options.tag = "div";
      if (options.element) {
        this.element(options.element);
      } else if (typeof options.id !== 'undefined') {
        e = window.document.getElementById(options.id);
        if (!e) {
          throw Error("Can't find element with id: \"" + options.id + "\"!");
        }
        this.element(e);
      } else {
        this.element(window.document.createElement(options.tag));
        this.addClass("wdg", "custom");
      }
    }
    catch (ex) {
      console.error("[widget] ", ex);
      console.error("[Widget] ", JSON.stringify(options));
      throw Error(ex);
    }
  }