Dashboard Layout Control with forms inside a tab

Hi Syncfusion,

Is it possible to add a form inside a “Dashboard Layout Control” and all these inside a tab?

Can you help me achieve this task?

Thanks
Fanis


1 Reply 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team June 30, 2020 09:57 AM UTC

Hi Fanis,  
 
Greetings from Syncfusion component. 
 
We have checked your requirement with DashboardLayout component. We would you like to let you know that DashboardLayout is an independent component. You can able to render any component inside the DashboardLayout component (Foe example: chart, Grid, TextBox). 
 
In DashboardLayout component, “e-panel-header” class denotes the header element of DashboardLayout. “e-panel-content” class denotes the content of DashboardLayout panel. 
 
Refer the below code snippet. 
 
<ejs-dashboardlayout id="editableLayout" columns="4"> 
                        <e-dashboardlayout-panels> 
                            <e-dashboardlayout-panel sizeX="1" sizeY="1" row="0" col="0"> 
                                <e-content-template> 
                                    <div> 
                                        <div class="e-panel-container"> 
                                            <div class="e-panel-header"> 
                                                <div> 
                                                    Form control 
                                                </div> 
                                            </div> 
                                            <div class="e-panel-content"> 
                                                <form id="form-element" style="padding:20px"> 
                                                    <div> FirstName</div> 
                                                    <ejs-textbox id="firstname" placeholder="First Name" width="200px" floatLabelType="Auto"></ejs-textbox> 
                                                    <div> Mobile Number</div> 
                                                    <ejs-textbox id="mobilenumber" placeholder="Enter Mobile Number" width="200px" floatLabelType="Auto"></ejs-textbox> 
                                                    <div><ejs-button id="submit_btn" content="Button"></ejs-button></div> 
                                                </form> 
                                            </div> 
                                        </div> 
                                    </div> 
                                </e-content-template> 
                            </e-dashboardlayout-panel> 
                        </e-dashboardlayout-panels> 
                    </ejs-dashboardlayout> 
 
Refer the below link to know more about the rendering the components in DashboardLayout. 
 
 
 
For your reference, we have rendered a DashboardLayout inside the Tab component. Refer the sample link below. 
 
 
To know more about the DashboardLayout component, refer the below link. 
 
 
 
 
Please let us know, if you need any further assistance. 
 
Regards,  
Sowmiya.P 



Marked as answer
Loader.
Up arrow icon