Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.36 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.36 KB

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