Our blazing fast Grid component built with pure JavaScript
Hi,
I also tested with 5.4.0 Gantt and it works fine here
/**
* Application
*/
import React, { Fragment } from 'react';
import { BryntumDemoHeader, BryntumThemeCombo, BryntumGantt } from '@bryntum/gantt-react';
import { ganttConfig } from './AppConfig';
import './App.scss';
const App = () => {
// edit button click handler
const handleEditClick = ({ record, grid : gantt }) => {
gantt.editTask(record);
};
const onBeforeDependencyEditHandler = () => false;
return (
<Fragment>
{/* BryntumDemoHeader component is used for Bryntum example styling only and can be removed */}
<BryntumDemoHeader
children={<BryntumThemeCombo />}
/>
<BryntumGantt
{...ganttConfig}
onBeforeDependencyEdit={onBeforeDependencyEditHandler}
extraData={{ handleEditClick }}
/>
</Fragment>
);
};
export default App;
Any chance to see the beforeDependencyEdit function code?
Yes sure. I'm using this code.
2023-07-03_14h21_19.png (5.3 KiB) Viewed 119 times
Yes it would be good if it also has async support because beforeTaskEdit has this support and it's working perfect.