mui / toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
1.27k stars 282 forks source link

Button click binding is not working #1801

Closed Prajapati-developer closed 1 year ago

Prajapati-developer commented 1 year ago

image

I am trying to make this happen on button click but it is not working please help with this and give me a suggestion if some corrections are needed @Janpot

Thank you in advance

Janpot commented 1 year ago

Setting state in these handlers is currently unsupported. We've talked about this before. I've played around with this over the weekend and came up with basic support for this in https://github.com/mui/mui-toolpad/pull/1807.

edit

@Prajapati-developer Which browser/OS combination are you on? It looks like there's an issue with the expand arrows on the object viewer.

Screenshot 2023-03-27 at 12 16 55

This is what it's supposed to look like:

Screenshot 2023-03-27 at 12 17 15
Prajapati-developer commented 1 year ago

image using this browser and I have tried your solution it is not working.

Janpot commented 1 year ago

@Prajapati-developer Thanks for coming back to me. The change wasn't published yet. I just published version 0.1.1 which contains the update. Would you mind trying again?

using this browser

Which operating system are you using?

Prajapati-developer commented 1 year ago

thanks, @Janpot for the quick reply I have tried the new version working as expected. and i'am using Windows 10 Pro OS . can we generate components dynamically?

prakhargupta1 commented 1 year ago

Hi @Prajapati-developer Can you expand more on what you mean by generate components dynamically, also if you could tell us a bit about the use case that would be great!