@voila-dashboards/jupyterlab-gridstack
Version:
A gridstack-based template for [](https://github.com/voila-dashboards/voila).
19 lines (18 loc) • 592 B
JavaScript
import { ReactWidget, ToolbarButtonComponent } from '@jupyterlab/apputils';
import { editIcon } from '@jupyterlab/ui-components';
import * as React from 'react';
/**
* A toolbar widget to open the dashboard metadata editor dialog.
*/
export default class Edit extends ReactWidget {
constructor(panel) {
super();
this._panel = panel;
}
render() {
const onClick = () => {
this._panel.info();
};
return (React.createElement(ToolbarButtonComponent, { icon: editIcon, onClick: onClick, tooltip: 'Edit grid parameters' }));
}
}