mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +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 _dialog: android.app.AlertDialog;
|
||||||
private _android: android.app.AlertDialog.Builder;
|
private _android: android.app.AlertDialog.Builder;
|
||||||
private _title: string;
|
private _title: string;
|
||||||
|
private _message: string;
|
||||||
//private _view: view.View;
|
//private _view: view.View;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
@ -174,6 +175,14 @@ export class Dialog {
|
|||||||
this._title = value;
|
this._title = value;
|
||||||
this.android.setTitle(this._title);
|
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 {
|
get view(): view.View {
|
||||||
return this._view;
|
return this._view;
|
||||||
|
7
ui/dialogs/dialogs.d.ts
vendored
7
ui/dialogs/dialogs.d.ts
vendored
@ -132,9 +132,14 @@
|
|||||||
*/
|
*/
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets or sets dialog message.
|
||||||
|
*/
|
||||||
|
message: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets or sets dialog view.
|
* Gets or sets dialog view.
|
||||||
*/
|
*/
|
||||||
view: view.View;
|
//view: view.View;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -186,6 +186,13 @@ export class Dialog {
|
|||||||
set title(value: string) {
|
set title(value: string) {
|
||||||
this.ios.title = value;
|
this.ios.title = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get message(): string {
|
||||||
|
return this.ios.message;
|
||||||
|
}
|
||||||
|
set message(value: string) {
|
||||||
|
this.ios.message = value;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
get view(): view.View {
|
get view(): view.View {
|
||||||
return this._view;
|
return this._view;
|
||||||
|
Reference in New Issue
Block a user