BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
Hi
When I render TabComponent inside DashboardLayoutComponent Panel , it does not display tabcomponent. Browser shows blank screen
It works when I generate TabComponent without TabItemsdirective including div block inside. Can please advise?
Hi Mehmet,
Greetings from Syncfusion support.
We have validated your reported issue with the Dashboard component in React platform. But we were not able to replicate the reported issue. Based on your requirement, we have prepared a sample of Tab component inside the Dashboard Layout. For your reference, we have attached sample in latest version(V20.2.49).
Sample : https://stackblitz.com/edit/react-zx7ybq-4wxrax?file=index.js
Check the attached sample and if the issue still persists, reproduce the issue in our shared sample. Also, share the exact package version that have been used at your end. If possible, please provide the issue replicated video footage. These details will help us to check and provide a prompt solution.
Please get back to us if you need any further assistance.
Regards,
Leo Lavanya Dhanaraj
Hi Lavanya
hope you are good. I copied all the files from your example, but my project still shows blank screen. I am attaching zip file(except node_modules) for your perusal
I deleted node_modules, package-lock.json files then performed npm install again. but it didnt work as well.
Regards
Mehmet
Hi Mehmet,
We have validated your reported issue in the React Dashboard Layout component. The mentioned issue is occurred due to the improper DOM rendering and missing style sheet references. To overcome the issue, you need to set the proper DOM rendering element id and map the stylesheet references in the corresponding CSS file. For your reference, we have attached the modified sample.
Check the below mentioned code snippets.
[index.css] @import '../node_modules/@syncfusion/ej2-base/styles/material.css'; @import '../node_modules/@syncfusion/ej2-buttons/styles/material.css'; @import '../node_modules/@syncfusion/ej2-popups/styles/material.css'; @import '../node_modules/@syncfusion/ej2-react-navigations/styles/material.css'; @import '../node_modules/@syncfusion/ej2-react-layouts/styles/material.css';
.container{ margin: 20px; }
[index.js] import ReactDOM from 'react-dom/client'; … const root = ReactDOM.createRoot(document.getElementById('root')); root.render(<Default />); |
Refer to the below mentioned links to know more about React Tab and Dashboard Layout component.
https://ej2.syncfusion.com/react/documentation/dashboard-layout/getting-started/
https://ej2.syncfusion.com/react/documentation/tab/getting-started/
Please check the attached sample and get back to us if you need any further assistance.
Regards,
Leo Lavanya Dhanaraj