Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ion-rating-stars
Advanced tools
Readme
The current version of the library is compatible with Ionic 6+.
Using npm
npm install ion-rating-stars --save
Using yarn
yarn add ion-rating-stars
Once installed you need to import our module in the parent module for the component you will be using it in:
import { IonRatingStarsModule } from 'ion-rating-stars';
@NgModule({
...
imports: [IonRatingStarsModule, ...],
...
})
export class YourModule {
}
Include the component on page template, like the example below:
<ion-rating-stars
[rating]="3"
[color]="'darkgrey'"
[filledColor]="'orange'"
[margin]="2"
[size]="20"
[disabled]="false"
[opacity]="0.5"
[isHalfStar]="true"
(ratingChange)="ratingChanged($event)"></ion-rating-stars>
number
[0-5].string
color of stars. applies as color
default darkgrey
.string
filledColor of stars. applies as color
default orange
.number
space between stars in pixels. applies as margin-right
. default 20
.number
size of stars. applies as font-size
. default 20
.boolean
disables the events and anything on ratings. applies as pointer-events
. default false
.number
change stars opacity when disabled is true. applies as number
default 0.5
boolean
to Enable/Disable half stars. applies as boolean
default false
EventEmitter<number>, called whenever you change a rating value
👤 Najam Us Saqib
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
FAQs
Ionic 6 rating stars component using Angular
The npm package ion-rating-stars receives a total of 61 weekly downloads. As such, ion-rating-stars popularity was classified as not popular.
We found that ion-rating-stars demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.