Autocomplete: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 3: Line 3:
     "title": "Autocomplete example",
     "title": "Autocomplete example",
     "properties": {
     "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": {
         "text": {
             "type": "string",
             "type": "string",
             "x-input": "lookupelement",
             "x-input": "LookupElement",
             "title": "Wikipedia lookup (Page titles)",
             "title": "Wikipedia lookup (Page titles)",
             "description": "Enter a text of minimum 3 characters.",
             "description": "Enter a text of minimum 3 characters.",
Line 23: Line 17:
         "text2": {
         "text2": {
             "type": "string",
             "type": "string",
             "x-input": "lookupelement",
             "x-input": "LookupElement",
             "title": "DAWA lookup (Danish streetnames)",
             "title": "DAWA lookup (Danish streetnames)",
             "description": "Enter a text of minimum 3 characters.",
             "description": "Enter a text of minimum 3 characters.",
Line 34: Line 28:
         "text3": {
         "text3": {
             "type": "string",
             "type": "string",
             "x-input": "lookupelement",
             "x-input": "LookupElement",
             "title": "Local form lookup (Font names from 'possibleFonts' array)",
             "title": "Local form lookup (Font names from 'possibleFonts' array)",
             "description": "Enter a text of minimum 1 characters. (Try 'a')",
             "description": "Enter a text of minimum 1 characters. (Try 'a')",
Line 44: Line 38:
         "possibleFonts": {
         "possibleFonts": {
             "type": "array",
             "type": "array",
             "x-format": "table",
             "x-layout": "table",
             "items": {
             "items": {
                 "type": "string"
                 "type": "string"

Latest revision as of 00:00, 15 January 2001

type"object"
title"Autocomplete example"
properties
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-layout"table"
items
type"string"
default
"Arial"
"Arial Black"
"Times"
"Tahoma"
"Helvetica"
"Comic Sans"