UNPKG

@voila-dashboards/jupyterlab-gridstack

Version:

A gridstack-based template for [![voila-gridstack](assets/voila.png)](https://github.com/voila-dashboards/voila).

19 lines (18 loc) 567 B
import { ReactWidget, ToolbarButtonComponent } from '@jupyterlab/apputils'; import { redoIcon } from '@jupyterlab/ui-components'; import * as React from 'react'; /** * A toolbar widget to redo changes. */ export default class Redo extends ReactWidget { constructor(model) { super(); this._model = model; } render() { const onClick = () => { this._model.sharedModel.redo(); }; return (React.createElement(ToolbarButtonComponent, { icon: redoIcon, onClick: onClick, tooltip: 'Redo changes' })); } }