loading... Pacem JS

Prompt

PacemPromptElement is a chat-like, multiline field (its value is the plain text) that grows with its content, between min-rows and max-rows. Enter sends it (send-combination, e.g. ctrl+enter; Shift+Enter starts a new line), then the field clears (unless clear-on-send="false").

Its <pacem-prompt-trigger> children open suggestions when their key gets typed (at the start of the text or after a space); the query may contain spaces, as long as it has suggestions. What a picked row becomes depends on the trigger's kind:

Triggers are bindable like any element: the # one builds its suggestions from its own triggerquery event.