need id
This commit is contained in:
parent
eea513528e
commit
c633c9a723
1 changed files with 5 additions and 0 deletions
|
@ -26,11 +26,16 @@ const extension: JupyterLabPlugin<void> = {
|
|||
class IFrameWidget extends Widget {
|
||||
constructor(path: string) {
|
||||
super();
|
||||
this.id = path;
|
||||
|
||||
let div = document.createElement('div');
|
||||
div.classList.add('iframe-widget');
|
||||
let iframe = document.createElement('iframe');
|
||||
iframe.setAttribute('baseURI', '');
|
||||
iframe.src = path;
|
||||
|
||||
this.iframe = iframe;
|
||||
|
||||
div.appendChild(iframe);
|
||||
this.node.appendChild(div);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue