Search results

Orientation

06 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.

Source
Preview
app.ts
Copied to clipboard
import { Slider } from '@syncfusion/ej2-inputs';

// Initialize Slider component
 let rangeObj: Slider = new Slider({
        // vertical orientation
        orientation: 'Vertical',
        value: 30
    });
    // Render initialized Slider
    rangeObj.appendTo('#slider');