getTagSuggestions(tagProps, c11nEnv)
Obtains the options suggested for selecting a tag for a given context.
Returns
A Promise that resolves to an object.
Parameters
Name | Type | Description | Required |
tagProps | object | The object that contains the search parameters for obtaining the list of tags. | ✅ |
c11nEnv | object | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API obtains the options suggested for selecting a tag for the given context.
PCore.getFeedUtils().getTagSuggestions({searchFor:"test",listSize:5}, 'app/primary_1')
.then(tagsResponse => {
// tagsResponse array
}).catch(err => {
// errors
});
Previous topic getMentionSuggestions(mentionProps, c11nEnv) Next topic likeMessage(param)