File tree Expand file tree Collapse file tree 5 files changed +10
-9
lines changed
ej2-asp-core-mvc/code-snippet/timeline Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
@using Syncfusion.EJ2.Layouts
2
2
3
- @Html.EJS().Timeline("Timeline").BeforeItemRender("function(args) { beforeItemRenderEvent(args) }").Items(ViewBag.productLifecycle).Render()
4
-
3
+ <div id="container" style="height: 250px;">
4
+ @Html.EJS().Timeline("Timeline").BeforeItemRender("function(args) { beforeItemRenderEvent(args) }").Items(ViewBag.productLifecycle).Render()
5
+ </div>
5
6
<script>
6
7
function beforeItemRenderEvent(args) {
7
8
// your required action here..
Original file line number Diff line number Diff line change 1
- @using Syncfusion.EJ2.Navigations ;
1
+ @using Syncfusion.EJ2.Layouts ;
2
2
3
3
<div class="container" style="height: 350px">
4
4
<ejs-timeline id="timeline" beforeItemRender="function(args){ beforeItemRenderEvent(args) }">
Original file line number Diff line number Diff line change 1
1
@using Syncfusion.EJ2.Layouts
2
-
3
- @Html.EJS().Timeline("timeline").Items(ViewBag.productLifecycle).Created("function(args) { createdEvent() }").Render()
4
-
2
+ <div id="container" style="height: 250px;">
3
+ @Html.EJS().Timeline("timeline").Items(ViewBag.productLifecycle).Created("function(args) { createdEvent() }").Render()
4
+ </div>
5
5
<script>
6
6
function createdEvent() {
7
7
// your required action here..
8
8
}
9
- </script>
9
+ </script>
Original file line number Diff line number Diff line change 1
- @using Syncfusion.EJ2.Navigations ;
1
+ @using Syncfusion.EJ2.Layouts ;
2
2
3
3
<div class="container" style="height: 350px">
4
4
<ejs-timeline id="timeline" created="function(args){ createdEvent() }">
Original file line number Diff line number Diff line change 1
- @using Syncfusion.EJ2.Navigations
1
+ @using Syncfusion.EJ2.Layouts
2
2
3
3
<div id="container" style="height: 350px;">
4
4
@Html.EJS().Timeline("timeline").Items(ViewBag.dotItems).Render()
You can’t perform that action at this time.
0 commit comments