Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Line Display #10

Closed
AmandaBarton opened this issue Aug 16, 2017 · 1 comment
Closed

Multiple Line Display #10

AmandaBarton opened this issue Aug 16, 2017 · 1 comment
Labels

Comments

@AmandaBarton
Copy link

Is there a way to display the star ratings on multiple lines?

For example, if I have a rating system out of 10, is there a way to display the bar as 2 rows of 5?

@MurhafSousli
Copy link
Owner

Hi @AmandaBarton Yes you can do this with css. copy the following in your global style

.br-{theme-name} .br-units {
  flex-wrap: wrap !important;
  justify-content: center;
}
.br-{theme-name} .br-unit { 
  flex: 0 1 18%;
}
<bar-rating name="rating" [(rate)]="userRate" [theme]="'horizontal'" [max]="10"
[showText]="true" [titles]="['Bad', 'Mediocre' , 'Good', 'Awesome']">></bar-rating>

replace {theme-name} with the name of the theme you are using, here is a plunker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants