Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeSpanHighlight is not part of GanttFeaturesConfigType #7633

Closed
ghulamghousdev opened this issue Oct 10, 2023 · 0 comments
Closed

timeSpanHighlight is not part of GanttFeaturesConfigType #7633

ghulamghousdev opened this issue Oct 10, 2023 · 0 comments
Assignees
Labels
forum Issues from forum large-account Reported by large customer resolved Fixed but not yet released (available in the nightly builds) typescript
Milestone

Comments

@ghulamghousdev
Copy link
Member

Note: There is a type error. timeSpanHighlight is not of the GanttFeaturesConfigType.

Forum post

Hi, i am using

const bryntumRef = useRef(null);

to load bryntum gantt in my functional component.
I want to use highlightTimeSpans method in it but unable to use it.

<BryntumGantt
                    {...staticGanttConfig}
                    ref={bryntumRef}
                    columns={columns}
                    taskMenuFeature={taskMenuFeature}
                    onTaskDragStart={(event: GanttEvent) => {
                            bryntumRef.current.instance?.highlightTimeSpans([{
                                name: "test",
                                startDate: new Date(2019, 0, 1),
                                endDate: new Date(2019, 0, 3),
                            }]);
                    }} />

I keep getting this error "TypeError: bryntumRef.current.instance?.highlightTimeSpans is not a function"

Bryntum Gantt Version 5.5.1
Need Help. Thanks

@ghulamghousdev ghulamghousdev added forum Issues from forum typescript large-account Reported by large customer labels Oct 10, 2023
@ghulamghousdev ghulamghousdev self-assigned this Oct 10, 2023
@ghulamghousdev ghulamghousdev added the resolved Fixed but not yet released (available in the nightly builds) label Oct 12, 2023
@ghulamghousdev ghulamghousdev added this to the 5.5.5 milestone Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forum Issues from forum large-account Reported by large customer resolved Fixed but not yet released (available in the nightly builds) typescript
Projects
None yet
Development

No branches or pull requests

1 participant