zcatalyst-integ-cliq
Version:
Node.js SDK for integrating Zoho Catalyst with Zoho Cliq
13 lines (12 loc) • 387 B
JavaScript
import SuggestionList from './suggestion.js';
export default class ContextParam {
setValue(value) {
this.value = { text: value };
}
addSuggestion(text, icon) {
if (this.suggestions === undefined) {
this.suggestions = new SuggestionList();
}
this.suggestions.addSuggestion(this.suggestions.newSuggestionObject(text, icon));
}
}