v2.3.1
This commit is contained in:
25
demos/cases/GanttFullscreen.jsx
Normal file
25
demos/cases/GanttFullscreen.jsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { useMemo } from 'react';
|
||||
import { getData } from '../data';
|
||||
import { Gantt, Fullscreen } from '../../src/';
|
||||
import './GanttFullscreen.css';
|
||||
|
||||
function GanttFullscreen({ skinSettings }) {
|
||||
const data = useMemo(() => getData(), []);
|
||||
|
||||
return (
|
||||
<div className="wx-0qqHrQ85 demo">
|
||||
<h4>Click the "expand" icon, or click on Gantt and press Ctrl+Shift+F</h4>
|
||||
<div className="wx-0qqHrQ85 gtcell">
|
||||
<Fullscreen hotkey="ctrl+shift+f">
|
||||
<Gantt
|
||||
{...skinSettings}
|
||||
tasks={data.tasks}
|
||||
links={data.links}
|
||||
/>
|
||||
</Fullscreen>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default GanttFullscreen;
|
||||
Reference in New Issue
Block a user