Skip to content

Commit 142d844

Browse files
author
Christian Mayr
committed
add done text property
1 parent 1576bb3 commit 142d844

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

nativescript-imagepicker/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ interface Options {
8080
*/
8181
mode?: string;
8282

83+
doneText?: string;
84+
8385
android?: {
8486
/**
8587
* Provide a reason for permission request to access external storage on api levels above 23.

nativescript-imagepicker/viewmodel.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class ImagePicker extends data_observable.Observable {
7070
}
7171

7272
get doneText(): string {
73-
return "Done";
73+
return this._options && this._options.doneText ? this._options.doneText : "Done";
7474
}
7575

7676
get cancelText(): string {

0 commit comments

Comments
 (0)