Search results

Orientation

21 Oct 2021 / 1 minute to read

The Slider can be displayed, either in horizontal or vertical orientation. By default, the Slider renders in horizontal orientation.

razor
HomeController.cs
Copied to clipboard
@using Syncfusion.EJ2
@using Syncfusion.EJ2.Inputs
    @Html.EJS().Slider("default").Value("30").Orientation(SliderOrientation.Vertical).Render()

<style>
    #default {
        height: 300px;
    }
</style>
Copied to clipboard
public IActionResult Index()
    {
        return View();
    }

ASP .NET Core - Slider - Orientation