Skip to content

Commit 49e1b20

Browse files
committed
docs(config): update config with windows mode
rearrange mode config so it is in alphabetical order references ionic-team/ionic-site#585
1 parent e905bd7 commit 49e1b20

File tree

2 files changed

+36
-28
lines changed

2 files changed

+36
-28
lines changed

ionic/config/config.ts

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -83,25 +83,33 @@ import {isObject, isDefined, isFunction, isArray} from '../util/util';
8383
* A config value can come from anywhere and be anything, but there are a default set of values.
8484
*
8585
*
86-
* | Config property | Default iOS Value | Default MD Value |
87-
* |----------------------------|------------------------|---------------------------|
88-
* | activator | highlight | ripple |
89-
* | actionSheetEnter | action-sheet-slide-in | action-sheet-md-slide-in |
90-
* | actionSheetLeave | action-sheet-slide-out | action-sheet-md-slide-out |
91-
* | alertEnter | alert-pop-in | alert-md-pop-in |
92-
* | alertLeave | alert-pop-out | alert-md-pop-out |
93-
* | backButtonText | Back | |
94-
* | backButtonIcon | ion-ios-arrow-back | ion-md-arrow-back |
95-
* | iconMode | ios | md |
96-
* | menuType | reveal | overlay |
97-
* | modalEnter | modal-slide-in | modal-md-slide-in |
98-
* | modalLeave | modal-slide-out | modal-md-slide-out |
99-
* | pageTransition | ios-transition | md-transition |
100-
* | pageTransitionDelay | 16 | 120 |
101-
* | tabbarPlacement | bottom | top |
102-
* | tabbarHighlight | | top |
103-
* | tabbarLayout | | |
104-
* | tabSubPages | | true |
86+
* | Config property | Default `ios` Value | Default `md` Value | Default `wp` Value |
87+
* |----------------------------|--------------------------|-----------------------------|-----------------------------|
88+
* | activator | "highlight" | "ripple" | "highlight" |
89+
* | actionSheetEnter | "action-sheet-slide-in" | "action-sheet-md-slide-in" | "action-sheet-wp-slide-in" |
90+
* | actionSheetLeave | "action-sheet-slide-out" | "action-sheet-md-slide-out" | "action-sheet-wp-slide-out" |
91+
* | alertEnter | "alert-pop-in" | "alert-md-pop-in" | "alert-wp-pop-in" |
92+
* | alertLeave | "alert-pop-out" | "alert-md-pop-out" | "alert-wp-pop-out" |
93+
* | backButtonText | "Back" | "" | "" |
94+
* | backButtonIcon | "ios-arrow-back" | "md-arrow-back" | "ios-arrow-back" |
95+
* | iconMode | "ios" | "md" | "ios" |
96+
* | loadingEnter | "loading-pop-in" | "loading-md-pop-in" | "loading-wp-pop-in" |
97+
* | loadingLeave | "loading-pop-out" | "loading-md-pop-out" | "loading-wp-pop-out" |
98+
* | menuType | "reveal" | "overlay" | "overlay" |
99+
* | modalEnter | "modal-slide-in" | "modal-md-slide-in" | "modal-md-slide-in" |
100+
* | modalLeave | "modal-slide-out" | "modal-md-slide-out" | "modal-md-slide-out" |
101+
* | pageTransition | "ios-transition" | "md-transition" | "wp-transition" |
102+
* | pageTransitionDelay | 16 | 96 | 96 |
103+
* | pickerEnter | "picker-slide-in" | "picker-slide-in" | "picker-slide-in" |
104+
* | pickerLeave | "picker-slide-out" | "picker-slide-out" | "picker-slide-out" |
105+
* | pickerRotateFactor | -0.46 | | |
106+
* | spinner | "ios" | "crescent" | "circles" |
107+
* | tabbarHighlight | | true | |
108+
* | tabbarLayout | | | |
109+
* | tabbarPlacement | "bottom" | "top" | "top" |
110+
* | tabSubPages | | true | true |
111+
* | toastEnter | "toast-slide-in" | "toast-md-slide-in" | "toast-wp-slide-in" |
112+
* | toastLeave | "toast-slide-out" | "toast-md-slide-out" | "toast-wp-slide-out" |
105113
*
106114
**/
107115
export class Config {

ionic/config/modes.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ Config.setModeConfig('ios', {
99
actionSheetEnter: 'action-sheet-slide-in',
1010
actionSheetLeave: 'action-sheet-slide-out',
1111

12-
toastEnter: 'toast-slide-in',
13-
toastLeave: 'toast-slide-out',
14-
1512
alertEnter: 'alert-pop-in',
1613
alertLeave: 'alert-pop-out',
1714

@@ -38,6 +35,9 @@ Config.setModeConfig('ios', {
3835
spinner: 'ios',
3936

4037
tabbarPlacement: 'bottom',
38+
39+
toastEnter: 'toast-slide-in',
40+
toastLeave: 'toast-slide-out',
4141
});
4242

4343

@@ -48,9 +48,6 @@ Config.setModeConfig('md', {
4848
actionSheetEnter: 'action-sheet-md-slide-in',
4949
actionSheetLeave: 'action-sheet-md-slide-out',
5050

51-
toastEnter: 'toast-md-slide-in',
52-
toastLeave: 'toast-md-slide-out',
53-
5451
alertEnter: 'alert-md-pop-in',
5552
alertLeave: 'alert-md-pop-out',
5653

@@ -79,6 +76,9 @@ Config.setModeConfig('md', {
7976
tabbarPlacement: 'top',
8077

8178
tabSubPages: true,
79+
80+
toastEnter: 'toast-md-slide-in',
81+
toastLeave: 'toast-md-slide-out',
8282
});
8383

8484

@@ -89,9 +89,6 @@ Config.setModeConfig('wp', {
8989
actionSheetEnter: 'action-sheet-wp-slide-in',
9090
actionSheetLeave: 'action-sheet-wp-slide-out',
9191

92-
toastEnter: 'toast-wp-slide-in',
93-
toastLeave: 'toast-wp-slide-out',
94-
9592
alertEnter: 'alert-wp-pop-in',
9693
alertLeave: 'alert-wp-pop-out',
9794

@@ -119,4 +116,7 @@ Config.setModeConfig('wp', {
119116
tabbarPlacement: 'top',
120117

121118
tabSubPages: true,
119+
120+
toastEnter: 'toast-wp-slide-in',
121+
toastLeave: 'toast-wp-slide-out',
122122
});

0 commit comments

Comments
 (0)