Skip to content

Commit

Permalink
Merge pull request #3358 from mariobuikhuizen/feat_backward_compatibi…
Browse files Browse the repository at this point in the history
…lity

feat: backward compatibility with 7.x
  • Loading branch information
jasongrout authored Jan 28, 2022
2 parents 1b1a49d + 9e45585 commit 6456032
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/base/src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,11 @@ export class JupyterLuminoWidget extends Widget {
private _view: DOMWidgetView;
}

/**
* @deprecated Use {@link JupyterLuminoWidget} instead (Since 8.0).
*/
export const JupyterPhosphorWidget = JupyterLuminoWidget;

export class JupyterLuminoPanelWidget extends Panel {
constructor(options: JupyterLuminoWidget.IOptions & Panel.IOptions) {
const view = options.view;
Expand Down Expand Up @@ -1167,6 +1172,14 @@ export class DOMWidgetView extends WidgetView {
this.el.removeAttribute('tabIndex');
}
}

/**
* @deprecated Use {@link luminoWidget} instead (Since 8.0).
*/
get pWidget(): Widget {
return this.luminoWidget;
}

el: HTMLElement; // Override typing
'$el': any;
luminoWidget: Widget;
Expand Down

0 comments on commit 6456032

Please sign in to comment.