File tree Expand file tree Collapse file tree 5 files changed +40
-0
lines changed Expand file tree Collapse file tree 5 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {RadioAccessibilityDemo} from './radio/radio-a11y';
1515import { DatepickerAccessibilityDemo } from './datepicker/datepicker-a11y' ;
1616import { IconAccessibilityDemo } from './icon/icon-a11y' ;
1717import { InputAccessibilityDemo } from './input/input-a11y' ;
18+ import { ProgressBarAccessibilityDemo } from './progress-bar/progress-bar-a11y' ;
1819import { ProgressSpinnerAccessibilityDemo } from './progress-spinner/progress-spinner-a11y' ;
1920import { SliderAccessibilityDemo } from './slider/slider-a11y' ;
2021
@@ -49,6 +50,7 @@ export class AccessibilityRoutingModule {}
4950 GridListAccessibilityDemo ,
5051 IconAccessibilityDemo ,
5152 InputAccessibilityDemo ,
53+ ProgressBarAccessibilityDemo ,
5254 ProgressSpinnerAccessibilityDemo ,
5355 RadioAccessibilityDemo ,
5456 SliderAccessibilityDemo ,
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export class AccessibilityDemo {
2626 { name : 'Grid list' , route : 'grid-list' } ,
2727 { name : 'Icon' , route : 'icon' } ,
2828 { name : 'Input' , route : 'input' } ,
29+ { name : 'Progress bar' , route : 'progress-bar' } ,
2930 { name : 'Progress spinner' , route : 'progress-spinner' } ,
3031 { name : 'Radio buttons' , route : 'radio' } ,
3132 { name : 'Slider' , route : 'slider' } ,
Original file line number Diff line number Diff line change 1+ < section >
2+ < h2 > Survey progress (Determinate progress bar)</ h2 >
3+ < md-progress-bar mode ="determinate " [value] ="surveyProgress " color ="primary ">
4+ </ md-progress-bar >
5+ </ section >
6+
7+ < section >
8+ < h2 > Video progress (Progress bar with buffer) </ h2 >
9+ < md-progress-bar [value] ="videoPlayValue " [bufferValue] ="videoBufferValue " mode ="buffer "
10+ color ="primary "> </ md-progress-bar >
11+ </ section >
12+
13+ < section >
14+ < h2 > Loading content progress (Indeterminate progress bar)</ h2 >
15+ < md-progress-bar mode ="indeterminate " color ="warn "> </ md-progress-bar >
16+ </ section >
17+
18+ < section >
19+ < h2 > Searching... (Query progress bar)</ h2 >
20+
21+ < md-progress-bar mode ="query " color ="accent "> </ md-progress-bar >
22+ </ section >
Original file line number Diff line number Diff line change 1+ import { Component } from '@angular/core' ;
2+
3+
4+ @Component ( {
5+ moduleId : module . id ,
6+ selector : 'progress-bar-a11y' ,
7+ templateUrl : 'progress-bar-a11y.html' ,
8+ } )
9+ export class ProgressBarAccessibilityDemo {
10+ surveyProgress : number = 30 ;
11+ videoPlayValue : number = 20 ;
12+ videoBufferValue : number = 60 ;
13+ }
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {AccessibilityHome} from './a11y';
1010import { DatepickerAccessibilityDemo } from './datepicker/datepicker-a11y' ;
1111import { IconAccessibilityDemo } from './icon/icon-a11y' ;
1212import { InputAccessibilityDemo } from './input/input-a11y' ;
13+ import { ProgressBarAccessibilityDemo } from './progress-bar/progress-bar-a11y' ;
1314import { ProgressSpinnerAccessibilityDemo } from './progress-spinner/progress-spinner-a11y' ;
1415import { SliderAccessibilityDemo } from './slider/slider-a11y' ;
1516
@@ -24,6 +25,7 @@ export const ACCESSIBILITY_DEMO_ROUTES: Routes = [
2425 { path : 'grid-list' , component : GridListAccessibilityDemo } ,
2526 { path : 'icon' , component : IconAccessibilityDemo } ,
2627 { path : 'input' , component : InputAccessibilityDemo } ,
28+ { path : 'progress-bar' , component : ProgressBarAccessibilityDemo } ,
2729 { path : 'progress-spinner' , component : ProgressSpinnerAccessibilityDemo } ,
2830 { path : 'radio' , component : RadioAccessibilityDemo } ,
2931 { path : 'slider' , component : SliderAccessibilityDemo } ,
You can’t perform that action at this time.
0 commit comments