Skip to content

Text autocompletion with options to use brackets

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
LICENSE.note
Notifications You must be signed in to change notification settings

bellma-lilly/autocompleter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autocompleter

Text Input Autocompletion

library(shiny)
library(autocompleter)
shinyApp(
  ui = fluidPage(
    div("Default mode mmatches at word breaks."),
    autocomplete_input("auto1", "default (dog/cat):", c("dog","cat")),
    div("Startswith matches at the beginning only."),
    autocomplete_input("auto2", "startswith (dog/cat):", c("dog","cat"),mode="startswith"),
    div("brackets matches inside {brackets}"),
    autocomplete_input("auto3", "brackets (dog/cat):", c("dog","cat"),mode="brackets"),
    actionButton("switch","Switch to apple,banana")
  ),
  server = function(input, output, session) {
    observeEvent(input$switch, {
      update_autocomplete_input(session,"auto1", "default (apple/banana):", c("apple","banana"))
      update_autocomplete_input(session,"auto2", "startswith (apple/banana):", c("apple","banana"),mode="startswith")
      update_autocomplete_input(session,"auto3", "brackets (apple/banana):", c("apple","banana"),mode="brackets")
    })
  }
)

About

Text autocompletion with options to use brackets

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
LICENSE.note

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published