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

Modes should refresh when eventRenderer changed #8140

Closed
ExtAnimal opened this issue Dec 28, 2023 · 0 comments
Closed

Modes should refresh when eventRenderer changed #8140

ExtAnimal opened this issue Dec 28, 2023 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@ExtAnimal
Copy link

Forum post

Hello. I am trying to make the events in my calendar user configurable, and would like to change the eventRenderer configuration of the calendar at runtime. I have tried to do it as below, and then refresh the calendar, but this does not work.

Object.assign(calendar.config.modes.weekResources.view, 
        {eventRenderer: ({ eventRecord }: { eventRecord: EventModel }) => {
            return renderToStaticMarkup(
              <MyCustomEvent eventRecord={eventRecord} />
            )
          }
        }
        )
        calendar.refresh()
        

Is there any way to change the eventRenderer config, and refresh all events according to the new eventRenderer?

@ExtAnimal ExtAnimal added bug Something isn't working in progress forum Issues from forum large-account Reported by large customer OEM OEM customer labels Dec 28, 2023
@ExtAnimal ExtAnimal added this to the 5.6.5 milestone Dec 28, 2023
@ExtAnimal ExtAnimal self-assigned this Dec 28, 2023
@ExtAnimal ExtAnimal added ready for review Issue is fixed, the pull request is being reviewed and removed in progress labels Dec 28, 2023
@isglass isglass 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 Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

2 participants