Kaynağa Gözat

Added missing types (#4516)

* added a fontFamily to OptionsTopBarButton type
* added modalTransitionStyle to the Options interface
Masaru Ichikawa 6 yıl önce
ebeveyn
işleme
53830af197
1 değiştirilmiş dosya ile 17 ekleme ve 0 silme
  1. 17
    0
      lib/src/interfaces/Options.ts

+ 17
- 0
lib/src/interfaces/Options.ts Dosyayı Görüntüle

82
   none = 'none'
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
 export interface OptionsTopBarLargeTitle {
92
 export interface OptionsTopBarLargeTitle {
86
   /**
93
   /**
87
    * Enable large titles
94
    * Enable large titles
253
    * Set the button text
260
    * Set the button text
254
    */
261
    */
255
   text?: string;
262
   text?: string;
263
+  /**
264
+   * Set the button font family
265
+   */
266
+  fontFamily?: string;
256
   /**
267
   /**
257
    * Set the button enabled or disabled
268
    * Set the button enabled or disabled
258
    * @default true
269
    * @default true
756
    * Configure the presentation style of the modal
767
    * Configure the presentation style of the modal
757
    */
768
    */
758
   modalPresentationStyle?: OptionsModalPresentationStyle;
769
   modalPresentationStyle?: OptionsModalPresentationStyle;
770
+  /**
771
+   * Configure the transition style of the modal
772
+   *
773
+   * #### (Android specific)
774
+   */
775
+  modalTransitionStyle?: OptionsModalTransitionStyle;
759
   /**
776
   /**
760
    * Configure the top bar
777
    * Configure the top bar
761
    */
778
    */