/sf-quick-text

A quick component to allows a user to select quick text from the standard QuickText sobject.

Primary LanguageJavaScript

sf-quick-text

Deploy to Salesforce
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.

Properties:

    @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.

Events:

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
}

Screenshots

Alt text Alt text Alt text