Browse Source

Added missing types (#4516)

* added a fontFamily to OptionsTopBarButton type
* added modalTransitionStyle to the Options interface
Masaru Ichikawa 6 years ago
parent
commit
53830af197
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      lib/src/interfaces/Options.ts

+ 17
- 0
lib/src/interfaces/Options.ts View File

@@ -82,6 +82,13 @@ export enum OptionsModalPresentationStyle {
82 82
   none = 'none'
83 83
 }
84 84
 
85
+export enum OptionsModalTransitionStyle {
86
+  coverVertical = 'coverVertical',
87
+  crossDissolve = 'crossDissolve',
88
+  flipHorizontal = 'flipHorizontal',
89
+  partialCurl = 'partialCurl'
90
+}
91
+
85 92
 export interface OptionsTopBarLargeTitle {
86 93
   /**
87 94
    * Enable large titles
@@ -253,6 +260,10 @@ export interface OptionsTopBarButton {
253 260
    * Set the button text
254 261
    */
255 262
   text?: string;
263
+  /**
264
+   * Set the button font family
265
+   */
266
+  fontFamily?: string;
256 267
   /**
257 268
    * Set the button enabled or disabled
258 269
    * @default true
@@ -756,6 +767,12 @@ export interface Options {
756 767
    * Configure the presentation style of the modal
757 768
    */
758 769
   modalPresentationStyle?: OptionsModalPresentationStyle;
770
+  /**
771
+   * Configure the transition style of the modal
772
+   *
773
+   * #### (Android specific)
774
+   */
775
+  modalTransitionStyle?: OptionsModalTransitionStyle;
759 776
   /**
760 777
    * Configure the top bar
761 778
    */