textSuggestions: Create script for auto-completion of text input

View source: R/utils_interface.R

textSuggestionsR 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)

nuno-agostinho/psichomics documentation built on Feb. 11, 2024, 11:16 p.m.