Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
ngp-material-rating
Advanced tools
https://github.com/josealejandro2928/ngp-material-rating#readme
Angular Library that uses material design icons for editing and showing rating variables. This library was generated with Angular CLI version 13.0.0.
npm i ngp-material-rating --save
NgpMaterialRating
requires Angular Material.
For angular version 8 or higher projects
ng add @angular/material
Importing the BrowserAnimationsModule into your application enables Angular's animation system. Declining this will disable most of Angular Material's animations.
You must import the module NgpMaterialRatingModule
where you will use it and use the component
***
import { NgpMaterialRatingModule } from 'ngp-material-rating';
@NgModule({
***
imports: [
NgpMaterialRatingModule,
],
****
})
In your component:
<ngp-material-rating [value]="rating"> </ngp-material-rating>
In .ts file
export class ExampleComponent {
rating = 4.5;
}
The NgpRatingMaterialComponent
component has a setting to change icon size, fill color, mode (read-only), maximum number of icons, presentation tags, and an option to put a clear button online. The interface look like this:
export interface MatStarConfig {
size?: string;
colorFill?: string;
label?: string;
readOnly?: boolean;
showNumber?: boolean;
showClearBtn?: boolean;
stars?: number;
}
export class AppComponent {
title = "ngp-material-rating-test";
rating = 3.5;
ratingForm = new FormControl(2.5, [Validators.required]);
config1: MatStarConfig = {
size: "22px",
readOnly: true,
colorFill: "#fa4508",
stars: 20,
};
config2: MatStarConfig = {
size: "36px",
readOnly: false,
showClearBtn: true,
showNumber: true,
};
}
<ngp-material-rating [config]="this.config1" [(ngModel)]="rating">
</ngp-material-rating>
<ngp-material-rating [config]="this.config2" [formControl]="ratingForm">
</ngp-material-rating>
FAQs
https://github.com/josealejandro2928/ngp-material-rating#readme
The npm package ngp-material-rating receives a total of 0 weekly downloads. As such, ngp-material-rating popularity was classified as not popular.
We found that ngp-material-rating 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.