textSuggestions {psichomics} | R Documentation

## Create script for auto-completion of text input

### Description

Uses the JavaScript library `jquery.textcomplete`

### Usage

    textSuggestions(id, words, novalue = "No matching value", char = " ")

### Arguments

`id` | Character: input ID
`words` | Character: words to suggest
`novalue` | Character: string when there's no matching values
`char` | Character to succeed accepted word

### Value

HTML string with the JavaScript script prepared to run

### Examples

    words <- c("tumor_stage", "age", "gender")
    psichomics:::textSuggestions("textareaid", words)

[Package psichomics version 1.20.2 Index]