Appearance and Styling in EJ 1 ASP.NET MVC Rotator

8 Aug 2017 / 1 minute to read

Adjusting rotator item size

SlideWidth

This property sets the Width of a Rotator Item. The value set to this property is string or number.

  • cshtml
  • @Html.EJ().Rotator("sliderContent").Datasource((IEnumerable<Localdata>)ViewBag.datasource)
    .RotatorFields(t => t.Text("Text").Url("Url"))
    .SlideWidth("600px").SlideHeight("350px")

    SlideHeight

    This property sets the Height of a Rotator Item. The value set to this property is string or number.

  • cshtml
  • @Html.EJ().Rotator("sliderContent").Datasource((IEnumerable<Localdata>)ViewBag.datasource)
    .RotatorFields(t => t.Text("Text").Url("Url"))
    .SlideWidth("600px").SlideHeight("350px")