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 @@ -26,6 +26,7 @@ import {DatepickerAccessibilityDemo} from './datepicker/datepicker-a11y';
26
26
import { IconAccessibilityDemo } from './icon/icon-a11y' ;
27
27
import { InputAccessibilityDemo } from './input/input-a11y' ;
28
28
import { MenuAccessibilityDemo } from './menu/menu-a11y' ;
29
+ import { ProgressBarAccessibilityDemo } from './progress-bar/progress-bar-a11y' ;
29
30
import { ProgressSpinnerAccessibilityDemo } from './progress-spinner/progress-spinner-a11y' ;
30
31
import { SliderAccessibilityDemo } from './slider/slider-a11y' ;
31
32
import { SlideToggleAccessibilityDemo } from './slide-toggle/slide-toggle-a11y' ;
@@ -71,6 +72,7 @@ export class AccessibilityRoutingModule {}
71
72
IconAccessibilityDemo ,
72
73
InputAccessibilityDemo ,
73
74
MenuAccessibilityDemo ,
75
+ ProgressBarAccessibilityDemo ,
74
76
ProgressSpinnerAccessibilityDemo ,
75
77
RadioAccessibilityDemo ,
76
78
SliderAccessibilityDemo ,
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export class AccessibilityDemo {
29
29
{ name : 'Icon' , route : 'icon' } ,
30
30
{ name : 'Input' , route : 'input' } ,
31
31
{ name : 'Menu' , route : 'menu' } ,
32
+ { name : 'Progress bar' , route : 'progress-bar' } ,
32
33
{ name : 'Progress spinner' , route : 'progress-spinner' } ,
33
34
{ name : 'Radio buttons' , route : 'radio' } ,
34
35
{ 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 @@ -13,6 +13,7 @@ import {DatepickerAccessibilityDemo} from './datepicker/datepicker-a11y';
13
13
import { IconAccessibilityDemo } from './icon/icon-a11y' ;
14
14
import { InputAccessibilityDemo } from './input/input-a11y' ;
15
15
import { MenuAccessibilityDemo } from './menu/menu-a11y' ;
16
+ import { ProgressBarAccessibilityDemo } from './progress-bar/progress-bar-a11y' ;
16
17
import { ProgressSpinnerAccessibilityDemo } from './progress-spinner/progress-spinner-a11y' ;
17
18
import { SliderAccessibilityDemo } from './slider/slider-a11y' ;
18
19
import { SlideToggleAccessibilityDemo } from './slide-toggle/slide-toggle-a11y' ;
@@ -33,6 +34,7 @@ export const ACCESSIBILITY_DEMO_ROUTES: Routes = [
33
34
{ path : 'icon' , component : IconAccessibilityDemo } ,
34
35
{ path : 'input' , component : InputAccessibilityDemo } ,
35
36
{ path : 'menu' , component : MenuAccessibilityDemo } ,
37
+ { path : 'progress-bar' , component : ProgressBarAccessibilityDemo } ,
36
38
{ path : 'progress-spinner' , component : ProgressSpinnerAccessibilityDemo } ,
37
39
{ path : 'radio' , component : RadioAccessibilityDemo } ,
38
40
{ path : 'slider' , component : SliderAccessibilityDemo } ,
You can’t perform that action at this time.
0 commit comments