(args: observable.EventData)
| 13 | } |
| 14 | |
| 15 | public actionName(args: observable.EventData) { |
| 16 | dialogs |
| 17 | .action({ |
| 18 | message: 'Change the name?', |
| 19 | cancelButtonText: 'Close', |
| 20 | actions: ['Yes', 'No'], |
| 21 | }) |
| 22 | .then((actionResult) => { |
| 23 | console.log('### Result: ' + actionResult); |
| 24 | if (actionResult === 'Yes') { |
| 25 | this.set('name', 'John Reese'); |
| 26 | } else { |
| 27 | this.set('name', 'Harold Finch'); |
| 28 | } |
| 29 | }); |
| 30 | } |
| 31 | |
| 32 | public alertName(args: observable.EventData) { |
| 33 | dialogs |