2017-03-23 08:37:24 -04:00
|
|
|
import Vue from 'vue';
|
2020-03-13 20:09:30 -04:00
|
|
|
import NotebookViewer from './notebook_viewer.vue';
|
2017-03-23 08:37:24 -04:00
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const el = document.getElementById('js-notebook-viewer');
|
|
|
|
|
2020-03-13 20:09:30 -04:00
|
|
|
return new Vue({
|
2017-03-23 08:37:24 -04:00
|
|
|
el,
|
2020-03-13 20:09:30 -04:00
|
|
|
render(createElement) {
|
|
|
|
return createElement(NotebookViewer, {
|
|
|
|
props: {
|
|
|
|
endpoint: el.dataset.endpoint,
|
|
|
|
},
|
|
|
|
});
|
2018-01-03 18:14:55 -05:00
|
|
|
},
|
2017-03-23 08:37:24 -04:00
|
|
|
});
|
|
|
|
};
|