Our powerful JS Calendar component


Post by SemFA »

Hello,

is there some way to use a React component as a widget in, for example, the sidebar?


Post by saki »

Give us a bit more information as to where exactly you want the React component.


Post by SemFA »

I would like to be able to work with react components in general. But currently, I'm looking to add a react component to the sidebar, above the resource list.


Post by saki »

We do not yet have support for React components in generic widgets yet – there a feature request on that https://github.com/bryntum/support/issues/774

As a workaround, you could add a Bryntum Widget to sidebar items: https://bryntum.com/docs/calendar/#Calendar/widget/Sidebar#config-items, then grab its element at the runtime and render the React component into it, perhaps with the help of React portals.

Unfortunately, we do not have a demo of that.


Post by SemFA »

Thanks, I'll follow the feature request. Hopefully it gets picked up somewhere in the close future.

I will look to build a workaround for now then.


Post Reply