textSuggestions: Create script for auto-completion of text input

Description Usage Arguments Value Examples

View source: R/utils_interface.R

Description

Uses the JavaScript library jquery.textcomplete

Usage

1
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

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

psichomics documentation built on Nov. 8, 2020, 5:44 p.m.