🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@angular2-material/progress-bar

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular2-material/progress-bar

Angular 2 Material progress-bar

Source
npmnpm
Version
2.0.0-alpha.7-12
Version published
Weekly downloads
81
-36.72%
Maintainers
1
Weekly downloads
 
Created
Source

md-progress-bar

md-progress-bar is a component for indicating progress and activity, matching the spec of Material Design Progress & Activity.

Progress Modes

There are four modes:

  • Determinate - <md-progress-bar mode="determinate">
    • Indicates how long an operation will take when the percentage complete is detectable.
  • Indeterminate - <md-progress-bar mode="indeterminate">
    • Indicates the user must wait while something finishes when it’s not necessary or possible to indicate how long it will take.
  • Buffer - <md-progress-bar mode="buffer">
    • Indicates how long an operation will take when the percentage complete is detectable, also provides a value of the preloading for the operation.
  • Query - <md-progress-bar mode="query">
    • Indicates the user must wait while something finishes when it is not yet possible to indicate how long it will take, but will be possible. Once possible, the progress mode should be moved to buffer or determinate.

Example:

<md-progress-bar mode="determinate" value="myValue"></md-progress-bar>
<md-progress-bar mode="indeterminate"></md-progress-bar>
<md-progress-bar mode="buffer" value="myValue" bufferValue="myBufferValue"></md-progress-bar>
<md-progress-bar mode="query"></md-progress-bar>

Theming

All progress indicators can be themed to match your "primary" palette, your "accent" palette, or your "warn" palette using the appropriate class.

Example:

<md-progress-bar mode="indeterminate" color="primary"></md-progress-bar>
<md-progress-bar mode="indeterminate" color="accent"></md-progress-bar>
<md-progress-bar mode="indeterminate" color="warn"></md-progress-bar>

Accessibility

  • ARIA attributes are applied to the indicator defining the valuemin, valuemax and valuenow attributes.

API Summary

Properties:

NameTypeDescription
color`"primary""accent"
mode`"determinate""indeterminate"
valuenumberThe current progress percentage for determinate indicators
bufferValuenumberThe current progress percentage for buffer secondary indicators

Keywords

angular

FAQs

Package last updated on 31 Aug 2016

Did you know?

Socket

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.

Install

Related posts