TargetId in EJ 1 ASP.NET MVC NavigationDrawer
23 Aug 2017 / 1 minute to read
This property is used to define the target Id for Navigation Drawer. The drawer opens while you click on the specified target element.
@{
@Html.EJ().Button("drawerTarget").Text("Open Drawer")
@Html.EJ().NavigationDrawer("navigationPane").Width(300).TargetId("drawerTarget").ContentTemplate(@<div>
@Html.EJ().ListView("list").Width(300).Items(items =>
{
items.Add().Text("Home");
items.Add().Text("Profile");
items.Add().Text("Photos");
items.Add().Text("Location");
})
</div>)
}
<style>
#drawerTarget {
top: 200px;
left: 600px;
position: absolute;
}
</style>
The following screenshots illustrates the output.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page