Skip to main content

Fullscreen

Description

Fullscreen helper

Usage

<Fullscreen {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

<script>
import { getData } from "../data";
import { Gantt, Fullscreen } from "@wx/svelte-gantt";

const data = getData();
</script>

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