<1 min read

SpellcheckButton

SpellcheckButton

A button that when pressed emits the XEventsTypes.UserAcceptedAQuery and XEventsTypes.UserAcceptedSpellcheckQuery events, expressing the user intention to set the spellchecked query.

Slots

Name Description Bindings
(name - type - description)
default

Events

This component emits 2 different events:

Examples

Basic example

The component sets the current spellcheckedQuery as the new query and emits the UserAcceptedAQuery and UserAcceptedSpellcheckQuery events.

<SpellcheckButton />

Customizing its contents

<SpellcheckButton>
  <template #default="{ spellcheckedQuery }">
    <span class="x-spellcheck__text">
      Set the Spellcheck as the new query: {{ spellcheckedQuery}}!
    </span>
  </template>
</SpellcheckButton>