There are multiple ways of using $autoCompleteRespond
. You can either use JSON or the simple aoi.js way.
The $autoCompleteRespond
can be used in two ways:
- Simple Way: Here’s how you can use it in a simple way:
- JSON Way: If you prefer JSON, you can use it like this:
Here’s how you can create a global application command named “example” with an option that uses autocomplete:
If autoComplete equals true
, it will respond with the given response:
Here’s how you can create a global application command named “example” with multiple options:
If autoComplete equals true
, it will respond with the given JSON response: