mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
message property added to the Dailog class
This commit is contained in:
@ -157,6 +157,7 @@ export class Dialog {
|
||||
private _dialog: android.app.AlertDialog;
|
||||
private _android: android.app.AlertDialog.Builder;
|
||||
private _title: string;
|
||||
private _message: string;
|
||||
//private _view: view.View;
|
||||
|
||||
constructor() {
|
||||
@ -174,6 +175,14 @@ export class Dialog {
|
||||
this._title = value;
|
||||
this.android.setTitle(this._title);
|
||||
}
|
||||
|
||||
get message(): string {
|
||||
return this._message;
|
||||
}
|
||||
set message(value: string) {
|
||||
this._message = value;
|
||||
this.android.setMessage(this._message);
|
||||
}
|
||||
/*
|
||||
get view(): view.View {
|
||||
return this._view;
|
||||
|
7
ui/dialogs/dialogs.d.ts
vendored
7
ui/dialogs/dialogs.d.ts
vendored
@ -132,9 +132,14 @@
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* Gets or sets dialog message.
|
||||
*/
|
||||
message: string;
|
||||
|
||||
/**
|
||||
* Gets or sets dialog view.
|
||||
*/
|
||||
view: view.View;
|
||||
//view: view.View;
|
||||
}
|
||||
}
|
@ -186,6 +186,13 @@ export class Dialog {
|
||||
set title(value: string) {
|
||||
this.ios.title = value;
|
||||
}
|
||||
|
||||
get message(): string {
|
||||
return this.ios.message;
|
||||
}
|
||||
set message(value: string) {
|
||||
this.ios.message = value;
|
||||
}
|
||||
/*
|
||||
get view(): view.View {
|
||||
return this._view;
|
||||
|
Reference in New Issue
Block a user