MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / actionName

Method actionName

apps/ui/src/dialogs/view-model.ts:15–30  ·  view source on GitHub ↗
(args: observable.EventData)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

logMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected