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

[REACT] resourceTimeRangeRenderer function is not supported #8035

Closed
taauntik opened this issue Dec 12, 2023 · 4 comments
Closed

[REACT] resourceTimeRangeRenderer function is not supported #8035

taauntik opened this issue Dec 12, 2023 · 4 comments
Assignees
Labels
api change API change bug Something isn't working forum Issues from forum high-priority Urgent to have fixed large-account Reported by large customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@taauntik
Copy link

Forum post

Please install the attached demo
inline-data.zip

See that the console.log is not logging in the console from resourceTimeRangeRenderer

@taauntik taauntik added bug Something isn't working forum Issues from forum large-account Reported by large customer labels Dec 12, 2023
@matsbryntse matsbryntse added the high-priority Urgent to have fixed label Dec 12, 2023
@jsakalos
Copy link

I have investigated it and the new function resourceTimeRangeRenderer is really missing from the wrapper. @SergeyMaltsev may need to add it to a list in the wrapper generators.

@SergeyMaltsev
Copy link
Contributor

SergeyMaltsev commented Dec 12, 2023

@jsakalos it is fn not a config so it is not valid for setting it in config.
https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/view/SchedulerPro#function-resourceTimeRangeRenderer

We have this in Scheduler booking demo for 5.6.3
Scheduler/examples/frameworks/angular/booking/src/app/app.component.ts

Should be set after component is created in app code?

Declared in d.ts file for SchedulerBase class.

    /**
     * An empty function by default, but provided so that you can override it. This function is called each time
     * a resource time range is rendered into the schedule. It's called with `resourceTimeRangeRecord`, `resourceRecord`,
     * and `renderData` params.
     * @param {object} detail An object containing the information needed to render a ResourceTimeRangeModel.
     */
    resourceTimeRangeRenderer(detail: {
        resourceTimeRangeRecord: ResourceTimeRangeModel
        resourceRecord: SchedulerResourceModel
        renderData: object
    }): string|DomConfig|DomConfig[];

@jsakalos
Copy link

I see, fair enough. @taauntik inform please the user and help him if he doesn't know how to do that.

@taauntik
Copy link
Author

User wants it as a config to use like eventRenderer
https://forum.bryntum.com/viewtopic.php?p=136393#p136393

@SergeyMaltsev SergeyMaltsev changed the title [REACT] Resource Time range renderer function is supported [REACT] resourceTimeRangeRenderer function is not supported Dec 15, 2023
@SergeyMaltsev SergeyMaltsev added in progress api change API change ready for review Issue is fixed, the pull request is being reviewed and removed in progress labels Dec 15, 2023
@SergeyMaltsev SergeyMaltsev added this to the 5.6.4 milestone Dec 15, 2023
@SergeyMaltsev SergeyMaltsev added resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api change API change bug Something isn't working forum Issues from forum high-priority Urgent to have fixed large-account Reported by large customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

4 participants