Add cmp.visible

This commit is contained in:
hrsh7th
2021-10-10 12:13:57 +09:00
parent ae42ce7b05
commit babb8023c6
2 changed files with 7 additions and 1 deletions

View File

@@ -434,6 +434,12 @@ Programatic API
You can use the following APIs.
#### `cmp.visible()`
Return the completion menu is visible or not.
NOTE: This method returns true if the native popup menu is visible. For convenience to define mappings.
#### `cmp.confirm({ select = boolean, behavior = cmp.ConfirmBehavior.{Insert,Replace} })`
Confirm current selected item if possible.