Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148446 | Oct 20,2019 10:44 AM UTC | Oct 22,2019 10:23 AM UTC | Vue | 3 |
![]() |
Tags: Sidebar |
return {
// Setting target for main-content area.
target : '.main-content',
type: 'Push'
};
<div class="main-content">
<div>
<div class="title">Main content</div>
<div class="center-align">
content goes here.
</div>
</div>
</div>
<ejs-sidebar id="sidebar-menu" :target='target' :type ='type' ref="sidebarInstance">
</ejs-sidebar> |
changeClick: function() {
this.$refs.sidebarInstance.$el.querySelector(".sub-title").innerHTML =" During click the content of the sidebar can be changed and the main content area will be expanded";
// Calling the refresh method of sidebar element
this.$refs.sidebarInstance.$el.ej2_instances[0].refresh();
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.