Gathering detailed insights and metrics for @nutrify/ngx-simple-spinner
Gathering detailed insights and metrics for @nutrify/ngx-simple-spinner
Gathering detailed insights and metrics for @nutrify/ngx-simple-spinner
Gathering detailed insights and metrics for @nutrify/ngx-simple-spinner
Simple and lightweight, yet customizable spinner/number input module for Angular
npm install @nutrify/ngx-simple-spinner
Typescript
Module System
Node Version
NPM Version
TypeScript (69.39%)
SCSS (17.25%)
HTML (9.54%)
JavaScript (3.82%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
29 Commits
1 Watchers
9 Branches
1 Contributors
Updated on Sep 19, 2022
Latest Version
1.0.3
Package Id
@nutrify/ngx-simple-spinner@1.0.3
Unpacked Size
420.25 kB
Size
108.19 kB
File Count
34
NPM Version
6.14.5
Node Version
10.15.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
Simple and lightweight, yet customizable spinner/number input module for Angular.
This is a number input component for Angular, fully supporting template driven forms and form validation. It is completely customizable using SCSS/CSS. Additionally it features: displaying most common fractions (1/2, 1/3, 1/4, ...), setting decimal places, i18n and RTL (right-to-left). It replicates Google Chrome's behaviour regarding its base functionality.
Ngx Simple Spinner requires Angular 9 or above.
1npm install @nutrify/ngx-simple-spinner --save
You might also need to install @angular/cdk:
1npm install @angular/cdk --save
For styling import @nutrify/ngx-simple-spinner/scss/styles.scss or @nutrify/ngx-simple-spinner/css/styles.css
app.module.ts:
1import { NgModule } from '@angular/core'; 2import { BrowserModule } from '@angular/platform-browser'; 3 4import { AppComponent } from './app.component'; 5import { SimpleSpinnerModule } from '@nutrify/ngx-simple-spinner'; 6 7@NgModule({ 8 declarations: [ 9 AppComponent 10 ], 11 imports: [ 12 BrowserModule, 13 SimpleSpinnerModule 14 ], 15 providers: [], 16 bootstrap: [AppComponent] 17}) 18export class AppModule { } 19
component.ts:
1// ... 2 3export class Component { 4 value = 12.5; 5}
component.html:
1<!-- ... --> 2 3<simple-spinner [(ngModel)]="value" min="1" max="100" smallStep="0.25" maxDecimalPlaces="2" fractions="true"></simple-spinner> 4 5<!-- ... -->
Check out the source code for an example.
Property | Default | Description |
---|---|---|
placeholder | Optional placeholder string, which gets displayed when value == null | |
value | Value of the number input | |
min | Number.MIN_SAFE_INTEGER | Minimum value (can be a float value) |
max | Number.MAX_SAFE_INTEGER | Maximum value (can be a float value) |
bigStep | 1 | Number by which the current value should be in-/decremented using the nav/keyboard (can be a float value) |
smallStep | 0.25 | Number by which the current value should be in-/decremented if 'bigStep' can't be applied (can be a float value) |
maxDecimalPlaces | 0 | Maximum amount of decimal places that should be allowed to enter (exceeding decimal places get trimmed) |
fractions | false | Boolean describing whether or not fractions should be rendered |
i18nNumbers | true | E.g. converts 0-9 to arabic digits, if arabic is the browser's default language |
hoverBorder | false | Boolean describing whether or not the border should only render on hover |
hoverNav | true | Boolean describing whether or not the navigation should only render on hover |
dir | Optional direction property describing the content's orientation. Can be: 'ltr' | 'rtl' | 'auto' |
Property | Description |
---|---|
disabled | Sets the disabled attribute |
required | Sets the required attribute |
You can use SCSS or CSS for styling.
Just import the stylesheet and apply changes to it.
The SCSS stylesheet is recommended since it exports more variables.
If you are not using SCSS for your Angular projects already, you really should.
1@import '~@nutrify/ngx-simple-spinner/scss/styles';
angular-cli.json:
1"styles": [ 2 "styles.css", 3 4 "../node_modules/@nutrify/ngx-simple-spinner/css/styles.css" 5]
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/25 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
113 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More