From 4036f5cd28c096ba218d940be2e6cf1e693b8adb Mon Sep 17 00:00:00 2001 From: Israel Garcia Date: Mon, 19 Jun 2017 12:03:15 -0400 Subject: [PATCH] Remove activationChar, update documentation. --- docs/api.md | 4 --- examples/13_autocomplete_advanced.html | 12 +++++---- src/js/treemode.js | 34 ++++++++++++-------------- 3 files changed, 22 insertions(+), 28 deletions(-) diff --git a/docs/api.md b/docs/api.md index cfaec0b..3c5986d 100644 --- a/docs/api.md +++ b/docs/api.md @@ -161,10 +161,6 @@ Constructs a new JSONEditor. Indicate where the autocomplete is going to be activated, under field in json node or/and under value in a json node, default is: ['field','value'] - - `{string} activationChar` - - This is a single char string, indicates that the text should starts with this char in order to process and display the autocompletion, a typical example is in some editors you type '@' and then you see a dropdownbox where you can link to an specific author. - - `{Function} getOptions (autocomplete, node, text, elementType)` This function will return your possible options for create the autocomplete selection, you can control dynamically which options you want to display according to the current active editing node. diff --git a/examples/13_autocomplete_advanced.html b/examples/13_autocomplete_advanced.html index 521008a..2b9cc63 100644 --- a/examples/13_autocomplete_advanced.html +++ b/examples/13_autocomplete_advanced.html @@ -32,19 +32,20 @@