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();
}
|