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 @@ -14,6 +14,7 @@ import {GridListAccessibilityDemo} from './grid-list/grid-list-a11y';
14
14
import { RadioAccessibilityDemo } from './radio/radio-a11y' ;
15
15
import { DatepickerAccessibilityDemo } from './datepicker/datepicker-a11y' ;
16
16
import { InputAccessibilityDemo } from './input/input-a11y' ;
17
+ import { ProgressBarAccessibilityDemo } from './progress-bar/progress-bar-a11y' ;
17
18
import { SliderAccessibilityDemo } from './slider/slider-a11y' ;
18
19
19
20
@@ -46,6 +47,7 @@ export class AccessibilityRoutingModule {}
46
47
DatepickerAccessibilityDemo ,
47
48
GridListAccessibilityDemo ,
48
49
InputAccessibilityDemo ,
50
+ ProgressBarAccessibilityDemo ,
49
51
RadioAccessibilityDemo ,
50
52
SliderAccessibilityDemo ,
51
53
]
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export class AccessibilityDemo {
25
25
{ name : 'Datepicker' , route : 'datepicker' } ,
26
26
{ name : 'Grid list' , route : 'grid-list' } ,
27
27
{ name : 'Input' , route : 'input' } ,
28
+ { name : 'Progress bar' , route : 'progress-bar' } ,
28
29
{ name : 'Radio buttons' , route : 'radio' } ,
29
30
{ name : 'Slider' , route : 'slider' } ,
30
31
] ;
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 @@ -9,6 +9,7 @@ import {RadioAccessibilityDemo} from './radio/radio-a11y';
9
9
import { AccessibilityHome } from './a11y' ;
10
10
import { DatepickerAccessibilityDemo } from './datepicker/datepicker-a11y' ;
11
11
import { InputAccessibilityDemo } from './input/input-a11y' ;
12
+ import { ProgressBarAccessibilityDemo } from './progress-bar/progress-bar-a11y' ;
12
13
import { SliderAccessibilityDemo } from './slider/slider-a11y' ;
13
14
14
15
export const ACCESSIBILITY_DEMO_ROUTES : Routes = [
@@ -21,6 +22,7 @@ export const ACCESSIBILITY_DEMO_ROUTES: Routes = [
21
22
{ path : 'datepicker' , component : DatepickerAccessibilityDemo } ,
22
23
{ path : 'grid-list' , component : GridListAccessibilityDemo } ,
23
24
{ path : 'input' , component : InputAccessibilityDemo } ,
25
+ { path : 'progress-bar' , component : ProgressBarAccessibilityDemo } ,
24
26
{ path : 'radio' , component : RadioAccessibilityDemo } ,
25
27
{ path : 'slider' , component : SliderAccessibilityDemo } ,
26
28
] ;
You can’t perform that action at this time.
0 commit comments