0.0.5 • Published 11 months ago

ngx-progress-loader v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Angular Ngx-ProgressLoader

How was Ngx-Progress Loader born?

While developing my website, I was looking for a component to use to represent my confidence level with various technologies.

As you can imagine, I certainly found a ready-made component that was right for me, but what's the point of life without some difficulty? :joy:

So I decided to provide my personal interpretation of the component which until then was just an idea in my head :muscle: :smile:

Feel free to sift through the code :mag_right:, take inspiration, use the component, report bugs :bug: and if you like, even leave a star :star:


Warning

The component is still under active development, and at the moment a stable version is not yet available.

As a result, both the methods of use and the API may undergo significant changes.


Table of contents

Version

NgxProgressLoaderAngular
v1.x-
v0.x>=17.0.0 <18.0.0

Browser Support

ChromeFirefoxIE / EdgeSafariOpera
Latest ✔Latest ✔IE11, Edge ✔Latest ✔Latest ✔

Features

  • Circle Loader
  • Multi Circle Loader
  • Square Loader
  • Content projection
  • Infinite loop animation
  • Customization

Installation

ngx-progress-loader is available via npm

Using npm:

$ npm install ngx-progress-loader --save

Configuration

To use the component, you need to import the package. No further configuration is required.

import { NgxProgressLoaderComponent } from 'ngx-progress-loader';


@Component({
  selector: 'app-root',
  standalone: true,
  imports: [
    NgxProgressLoaderComponent //Import the component into your project
  ],
  templateUrl: './app.component.html',
  styleUrl: './app.component.scss'
})

Customization

At the moment it's only possible to offer a slight customization of the component.

More configuration options will be available in future versions of the component.

Color

ngx-progress-loader is presented with default colors that can be used.

ColorHex CodeDefault
black#1a1a1ablack!
light-grey#d1d1d1light-grey!
dark-grey#424242dark-grey!
white#edededwhite!
blue#3498DBblue!:heavy_check_mark:
orange#F39C12orange!
green#27AE60green!
purple#7D3C98purple!

The desired color can be indicated via the color input. If omitted, the default coloring is used.

  <ngx-progress-loader
    type="circle"
    color="purple">
  </ngx-progress-loader>

:bangbang: It isn't currently possible to use color input to indicate custom colors. However, you can customize the coloring by using custom CSS rules. For more information see the section Css Customization

CSS Customization

:warning: The library is still under active development! Many properties may have been implemented only partially and therefore not available for all components

You can customize the appearance of your components by editing the CSS custom properties.

CSS Custom ProprietyDescriptionSupport
--track-colorAllows customization of the loader track color!Track customization can only be done through the use of custom CSS.:heavy_check_mark:
--progress-colorAllows you to change the color of the Loader. You can indicate coloring in any format allowed by CSS (hex, rgb/rgba,...) :bangbang: The color input takes precedence over the CSS property:heavy_check_mark:
--progress-strokeDetermines the width of the track.Available only for circle type progress:heavy_minus_sign:

Example

  //The change will apply to all components of that type unless there is a more specific rule
  ngx-progress-loader {
    --track-color: #3d3737;
    --progress-color: '#0b667b';
  }

  //The change will be applied to all components with the custom-color class
  .custom-color {
    --track-color: #3d3737;
    --progress-color: '#0b667b';
  }

Demo

Example

  <ngx-progress-loader
    type="circle"
    [value]='progressValue'
    color="orange">
  </ngx-progress-loader>
0.0.5

11 months ago

0.0.4

11 months ago

0.0.1

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1-beta.1.1

1 year ago

0.0.1-beta.1

1 year ago