flowcomponents icon indicating copy to clipboard operation
flowcomponents copied to clipboard

How to display data on jcomponent?

Open DPain opened this issue 7 years ago • 2 comments

Hi, I'm trying to create a display result component that receives data from its previous block and display the data on the textboxes that are within the component's settings window when I open it.

My approach is that I would modify the exports.options value during the instance.on('data') event and then add a client side ON('open.componentname') event to modify the textbox according to the exports.options value, but I noticed that the exports.options value that is modified from the server side does not get reflected on the client side.

Is my approach incorrect and is there any other way to display received data on the settings form?

Thanks!

DPain avatar Jun 26 '19 14:06 DPain

You need to call instance.reconfig() to update options on client. Also you don't need to modify the textbox yourself.

molda avatar Jun 26 '19 15:06 molda

Ah thanks! I got it to work!

DPain avatar Jun 26 '19 18:06 DPain