Skip to content

Commit dac9223

Browse files
authored
Update action.md
need to import the action
1 parent 4c32b8b commit dac9223

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/docs/en/elements/dialogs/action.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The method is part of the [`dialogs` module](https://docs.nativescript.org/api-r
1515
The `action()` method is available globally. You can call it anywhere in your app.
1616

1717
```JavaScript
18+
import { action } from '@nativescript/core/ui/dialogs'
1819
action("Your message", "Cancel button text", ["Option1", "Option2"])
1920
.then(result => {
2021
console.log(result);

0 commit comments

Comments
 (0)