message property added to the Dailog class

This commit is contained in:
Vladimir Enchev
2014-06-10 15:12:06 +03:00
parent 64bcf0381f
commit 14ceb15156
3 changed files with 22 additions and 1 deletions

View File

@ -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;

View File

@ -132,9 +132,14 @@
*/
title: string;
/**
* Gets or sets dialog message.
*/
message: string;
/**
* Gets or sets dialog view.
*/
view: view.View;
//view: view.View;
}
}

View File

@ -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;