shinyjqui

by Yang-Tang

Yang-Tang / shinyjqui

jQuery UI Interactions and Effects for Shiny

217 Stars 31 Forks Last release: Not found Other 130 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

shinyjqui

Travis-CI Build Status AppVeyor Build Status CRAN\_Status\_Badge

The shinyjqui package is an R wrapper for jQuery UI javascript library. It allows user to easily add interactions and animation effects to a shiny app.

Installation

You can install the stable version from CRAN, or the development version from github with:

# install from CRAN
install.packages('shinyjqui')

for the development version

devtools::install_github("yang-tang/shinyjqui")

Usage

# load packages
library(shiny)
library(shinyjqui)
library(ggplot2)
library(highcharter)
  • Draggable: Allow elements to be moved using the mouse
server 

  • Resizable: Change the size of an element using the mouse.
server 

  • Sortable: Reorder elements in a list or grid using the mouse.
server % 
      hc_legend(enabled = FALSE)
  })
  output$gg 

  • Animation Effects: Apply an animation effect to an element. Effects can also be used in hide or show.
server 

  • Classes transformation: Add and remove class(es) to elements while animating all style changes.
server  0) {
      jqui_remove_class('#foo', paste(class_to_remove, collapse = ' '), duration = 1000)}
    if(length(class_to_add) > 0) {
      jqui_add_class('#foo', paste(class_to_add, collapse = ' '), duration = 1000)}
  })

}

ui

  • orderInput(): Display a list of items. Their order can be changed by drag and drop.
server 

  • sortableTableOutput(): Render a HTML table with sortable rows.
ui 

  • selectableTableOutput(): Render a HTML table with selectable rows or cells.
ui 

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.