Deploy via sfdx instead
Provides a 'Add Quick Text' button that allows the user to both search and select standard Quick Text. The selected text is then dispatched as an event for the developer to handle and implement.
@api channelsToInclude = ''
@api btnVariant = 'brand'
channelsToInclude - include a comma separated list of quick text channels to be displayed to the user (Ex 'Email;Internal;Event;Task;Knowledge').
btnVariant - the variant of the button.
quicktextselect
- dispatches once a quick text record is selected.
Example:
HTML
<c-quick-text
onquicktextselect={handleQuickTextSelect}
></c-quick-text>
JS
handleQuickTextSelect(event) {
const quickTextSelected = event.detail.value
}