Orientation in EJ 1 Angular Rating
7 Jun 2017 / 1 minute to read
Rating provides support for vertical orientation. By default Rating renders with horizontal orientation. You can the change the orientation by the orientation property.
The following code example is used to render the Rating control with vertical orientation.
Add the following HTML to render Rating with customized orientation.
<ej-rating id="rating" [orientation]="orientation"> </ej-rating>
import { Component } from '@angular/core';
@Component({
selector: 'ej-app',
templateUrl: 'src/rating/rating.component.html'
})
export class RatingComponent {
orientation: any;
constructor() {
this.orientation = ej.Rating.Orientation.Vertical;
}
}
The following screenshot illustrates the Rating with vertical orientation.
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