
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
eko-rating-input
Advanced tools
eko-rating-input is created as input or show Rating stars value to use in forms or on loaded data with a rating input from 1 to 5
README.md
Install eko-rating-input
from npm
:
npm i eko-rating-input --save
this package neads to have fontawsome
installed.
Add needed package to NgModule imports:
import { EkoRatingInputModule } from 'eko-rating-input.module';
@NgModule({
...
imports: [
...,
EkoRatingInputModule,
...
]
...
})
To app.component.ts create the function to get data from eko-rating-input input
export class AppComponent {
...
public ratingValue: number;
...
getRattingValue(e) {
console.log('Rating input value: ', e);
this.ratingValue = e;
}
...
}
To app.component.html add :
<eko-RatingInput
(ratingValueOutput)="getRattingValue($event)" // Get value from the clicked star
[starColor]="'gold'"
[labelColor]="'#999'"
[fontSize]="'28px'"
[rateNumber]="true"
>Star Ratting</eko-RatingInput>
or if you wane display values from 1 to 5 in star ra ting do this:
<eko-RatingInput
[starColor]="'gold'"
[labelColor]="'#999'"
[fontSize]="'28px'"
[editable]="false"
[rateNumber]="true"
[value]="3" // Here comes the value of rating
>Star Ratting</eko-RatingInput>
or just for preview rating:
<eko-RatingInput
[fontSize]="'16px'"
[editable]="false"
[value]="4"
></eko-RatingInput>
if you write [rateNumber]="false"
the star preview will not show the star number.
FAQs
eko-rating-input is created as input or show Rating stars value to use in forms or on loaded data with a rating input from 1 to 5
The npm package eko-rating-input receives a total of 0 weekly downloads. As such, eko-rating-input popularity was classified as not popular.
We found that eko-rating-input demonstrated a not healthy version release cadence and project activity because the last version was released 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.