Autocomplete

From Wikisphere
Jump to navigation Jump to search
type"object"
title"Autocomplete example"
properties
_header
type"string"
x-format"hidden"
title"Autocomplete example"
description"<p>This example shows various setups using the autocomplete editor, based on the <a href="https://autocomplete.trevoreyre.com/#/javascript-component" target="_blank">autocomplete</a> library. The setup for each lookup engine is defined in a special callback list.</p>"
text
type"string"
x-input"lookupelement"
title"Wikipedia lookup (Page titles)"
description"Enter a text of minimum 3 characters."
x-autocomplete
search"wikipediaSearch"
getResultValue"wikipediaGetResultValue"
renderResult"wikipediaRenderResult"
autoSelecttrue
text2
type"string"
x-input"lookupelement"
title"DAWA lookup (Danish streetnames)"
description"Enter a text of minimum 3 characters."
x-autocomplete
search"dawaSearch"
getResultValue"dawaGetResultValue"
autoSelecttrue
text3
type"string"
x-input"lookupelement"
title"Local form lookup (Font names from 'possibleFonts' array)"
description"Enter a text of minimum 1 characters. (Try 'a')"
x-autocomplete
search"search_local"
autoSelecttrue
possibleFonts
type"array"
x-format"table"
items
type"string"
default
"Arial"
"Arial Black"
"Times"
"Tahoma"
"Helvetica"
"Comic Sans"