Skip to main content

Fullscreen

Description

Fullscreen helper

Usage

<Fullscreen hotkey={hotkey} />

How to import the component to the Gantt chart and enable the fullscreen mode with other usage examples see here: Fullscreen mode

Parameters

  • hotkey - a string with the combination of hotkeys for enabling the fullscreen mode

Example

import { getData } from "../data";
import { Gantt, Fullscreen } from "wx-react-gantt";

const App = () => {
const data = getData();

return (
<Fullscreen hotkey="ctrl+shift+f">
<Gantt tasks={data.tasks} links={data.links} />
</Fullscreen>
);
};

export default App;