Premium support for our pure JavaScript UI components


Post by turina »

Dear support,

I use BryntumButton to define a button with a menu.

I would like to add my own react component in the menu items. Is it possible?

		<BryntumButton
                        icon="b-fa b-fa-cog"
                        cls="b-rounded b-transparent tb-button"
                        color="red"
                        menuIcon={null}
                        menu={{
                            type: "popup",
                            anchor: true,
                            items: [
                                //I want to add my react component here <MyComponent/>
                                {
                                    type: "slidetoggle",
                                },
                            ],
                        }}
                    />
    

Post by alex.l »

This is kind of tricky to implement. Better to show all React component (menu or popup in your case) on button click.
Does it applicable for you?

All the best,
Alex


Post by turina »

Thanks for your reply. Indeed, I did all the menu in pure react. It was easier than I thought.

BR


Post Reply