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

Method alertName

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

Source from the content-addressed store, hash-verified

30 }
31
32 public alertName(args: observable.EventData) {
33 dialogs
34 .alert({
35 title: 'Name',
36 message: 'The name will change.',
37 okButtonText: 'OK',
38 })
39 .then((alertResult) => {
40 console.log('### Result: ' + alertResult);
41 this.set('name', 'John Reese');
42 });
43 }
44
45 public confirmName(args: observable.EventData) {
46 dialogs

Callers

nothing calls this directly

Calls 2

logMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected