Tokeninput

Default

e-token-input

<label class="e-field__label" for="tokeninput">
  Label
</label>
<e-emojipicker class="e-emojipicker">
  <e-token-input class="e-tokeninput" id="tokeninput"></e-token-input>
</e-emojipicker>
<label class="e-field__label" for="tokeninput">Label</label><e-emojipicker class="e-emojipicker"><e-token-input class="e-tokeninput" id="tokeninput"></e-token-input></e-emojipicker>

Debug controls

Variations

placeholder[placeholder]

<e-token-input class="e-tokeninput" placeholder="Placeholder"></e-token-input>
<e-token-input class="e-tokeninput" placeholder="Placeholder"></e-token-input>

without input style[no-style]

<e-token-input class="e-tokeninput" no-style></e-token-input>
<e-token-input class="e-tokeninput" no-style></e-token-input>

rows[rows="2"]

<e-token-input class="e-tokeninput" rows="2"></e-token-input>
<e-token-input class="e-tokeninput" rows="2"></e-token-input>

textarea[textarea]

<label class="e-field__label" for="textarea">
  Label
</label>
<e-emojipicker class="e-emojipicker">
  <e-token-input class="e-tokeninput" textarea id="textarea"></e-token-input>
</e-emojipicker>
<label class="e-field__label" for="textarea">Label</label><e-emojipicker class="e-emojipicker"><e-token-input class="e-tokeninput" textarea id="textarea"></e-token-input></e-emojipicker>

API Reference

Properties

NameDescriptionTypeRequiredDefault value
valueGets and sets the value of the tokeninput. It provides and takes HTML, so "<", ">" and "&" characters in text are converted to HTML entities.string-
placeholderSets a placeholderstring-
no-styleRemoves e-input class from input div so you can style easilybooleanfalse
rowsAllows input to be multiline and truncate contentnumber1
textareaDesgin looks like textarea, allows input to be multilinebooleanfalse

Events

EventDescriptionReturns
blurFires on blur
valueChangeFires on every value changevalue
activateTokenFires on click tokenobject

API Reference for token

Properties

NameDescriptionTypeRequiredDefault value
nameText content of token.string
dataJson data sent back with click event.string
iconName of the icon shown after name.string
iconTooltipTooltip of the icon.string