Title: [SOLVED] dynamically add tab panel using reactJs Post by: lintang on April 04, 2019, 04:11:30 AM i build application using reactJs and EasyUi using meteorJs framework.
i create dynamic sidebar menu with tree. but i'am very confused how to add new tab using on click event i build. Title: Re: dynamically add tab panel using reactJs Post by: stworthy on April 04, 2019, 06:37:16 PM Please refer the code below:
Code: <Tabs style={{height:250}}> Title: Re: dynamically add tab panel using reactJs Post by: lintang on April 06, 2019, 01:30:31 AM thanks for your answer, and I was follow your code :)
Code: import React, { Component } from 'react'; Sorry this is my code. I'am new in react handleAddTab is function will called from my sidebar file, I try to change data array with new data but its not got effect on my tabpanel And, Please give me scrypt for render from other file imported on this tabpanel, Thank you very much Title: Re: dynamically add tab panel using reactJs Post by: stworthy on April 06, 2019, 01:58:34 AM This is the code to append a new TabPanel component.
Code: handleAddTab(){ Title: Re: dynamically add tab panel using reactJs Post by: lintang on April 07, 2019, 04:49:32 PM wuww ok thank you sir, i have problem with setstate. but i can fix it.
thanks you veey much |