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

Method confirmName

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

Source from the content-addressed store, hash-verified

43 }
44
45 public confirmName(args: observable.EventData) {
46 dialogs
47 .confirm({
48 title: 'Name',
49 message: 'Do you want to change the name?',
50 cancelButtonText: 'No',
51 neutralButtonText: 'Ignore',
52 okButtonText: 'Yes',
53 })
54 .then((confirmResult) => {
55 console.log('### Result: ' + confirmResult);
56 if (confirmResult) {
57 this.set('name', 'John Reese');
58 } else {
59 this.set('name', 'Harold Finch');
60 }
61 });
62 }
63
64 public loginName(args: observable.EventData) {
65 dialogs

Callers

nothing calls this directly

Calls 2

logMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected