File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,21 @@ interface Options {
80
80
*/
81
81
mode ?: string ;
82
82
83
+ /**
84
+ * Set the text for the done button in iOS
85
+ */
83
86
doneText ?: string ;
84
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
+
85
98
android ?: {
86
99
/**
87
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 @@ -74,11 +74,11 @@ export class ImagePicker extends data_observable.Observable {
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