File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,21 @@ interface Options {
80
80
*/
81
81
mode ?: string ;
82
82
83
+ /**
84
+ * Set the text for the done button in iOS
85
+ */
86
+ doneText ?: string ;
87
+
88
+ /**
89
+ * Set the text for the cancel button in iOS
90
+ */
91
+ cancelText ?: string ;
92
+
93
+ /**
94
+ * Set the text for the albums button in iOS
95
+ */
96
+ albumsText ?: string ;
97
+
83
98
android ?: {
84
99
/**
85
100
* Provide a reason for permission request to access external storage on api levels above 23.
Original file line number Diff line number Diff line change @@ -70,15 +70,15 @@ export class ImagePicker extends data_observable.Observable {
70
70
}
71
71
72
72
get doneText ( ) : string {
73
- return "Done" ;
73
+ return this . _options && this . _options . doneText ? this . _options . doneText : "Done" ;
74
74
}
75
75
76
76
get cancelText ( ) : string {
77
- return "Cancel" ;
77
+ return this . _options && this . _options . cancelText ? this . _options . cancelText : "Cancel" ;
78
78
}
79
79
80
80
get albumsText ( ) : string {
81
- return "Albums" ;
81
+ return this . _options && this . _options . albumsText ? this . _options . albumsText : "Albums" ;
82
82
}
83
83
84
84
get mode ( ) : string {
You can’t perform that action at this time.
0 commit comments