0.1.3 • Published 2 years ago

ngx-i24-circular-progress v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

NgxI24CircularProgress

npm.io npm.io

A lightweight plugin to render a simple, animated circular progress bar.

Features

  • highly customizable
  • very easy to implement

Demo

npm.io

Get started

Installation

$ npm i ngx-i24-circular-progress@latest

Example

TS
Module
import { NgxI24CircularProgressModule } from 'ngx-i24-circular-progress';
@NgModule({
  declarations: [ AppComponent ],
  imports: [BrowserModule, NgxI24CircularProgressModule  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
Component
import { Component } from '@angular/core';
@Component({
 selector: 'app-root',
 templateUrl: './app.component.html',
 styleUrls: ['./app.component.scss']
})
export class AppComponent {
 option = {
   primaryColor: '#0495fc',
   secondaryColor: '#191919',
   percentColor: '#fff',
   textColor: '#ffffffbf',
   text: 'html',
   circleRadius: 70
 };
 number = 75;
}
HTML
<ngx-i24-circular-progress [option]="option" [number]="number"></ngx-i24-circular-progress>

Options

Property (Type)DefaultDescription
number0The percent value
option -> primaryColor#0495fcThe color of the active bar
option -> secondaryColor#191919The color of the inactive bar
option -> strokeWidth2The stroke width of the circle
option -> dotWidth5The width and the height of the dot
option -> numberColor#000The color of the number
option -> percentColor#000The color of the percent sign
option -> textColor#000000bfThe color of the text
option -> numberFontSize'2.5em'The font size of the number
option -> percentFontSize'0.5em'The font size of the percent sign
option -> textFontSize'0.75em'The font size of the text
option -> percent50The value must be between 0 - 100
option -> text'css'-
option -> circleRadius70The radius of the circle
option -> spaceBetweenNumberPercent3pxThe space between number and percent sign

Other Projects

NameLinkDescription
ngx-i24-circular-progressLinkA lightweight plugin to render a simple, animated circular progress bar.
ngx-i24-progress-barLinkA lightweight plugin to render a simple, animated progress bar.
ngx-weekday-pickerLinkLightweight plugin to a pick weekday.
ngx-i24-color-pickerLinkA lightweight plugin to pick a color.
ngx-i24-checkboxLinkA lightweight plugin to display a modern checkbox.

Support

npm.io

Copyright

Copyright (c) 2022 Yaseen Alrefaee, contributors. Released under the MIT

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago