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 "@svar-ui/react-gantt";

const data = getData();

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