Skip to content
On this page

NcAutoCompleteResult

Props

Prop nameDescriptionTypeValuesDefault
labelstring-
sublinestring-null
idstring-null
iconstring-
sourcestring-
statusobject|array-() => ({})

NcMentionBubble

Props

Prop nameDescriptionTypeValuesDefault
idstring-
labelstring-
iconstring-
sourcestring-
primaryboolean-false

NcRichContenteditable

Props

Prop nameDescriptionTypeValuesDefault
userDataobject-{}
valuestring-''
placeholderstring-t('Write message, use "@" to mention someone, use ":" for emoji autocompletion …')
autoCompletefunc-
menuContainerElement-() => document.body
multilineMake the contenteditable looks like a textarea or not.
Default looks like a single-line input.
This also handle the default enter/shift+enter behaviour.
if multiline, enter = newline; otherwise enter = submit
shift+enter always add a new line. ctrl+enter always submits
boolean-false
contenteditableIs the content editable ?boolean-true
disabledDisable the editing and show specific disabled designboolean-false
maxlengthMax allowed lengthnumber-null
emojiAutocompleteEnable or disable emoji autocompletionboolean-true

Events

Event namePropertiesDescription
Event paste the original paste event
submit
pasteThe original paste event
update:value

General description

This component displays contenteditable div with automated @ [at] autocompletion and : [colon] emoji autocompletion.

Examples

loading...