Learn R Programming

sortable (version 0.4.5)

Drag-and-Drop in 'shiny' Apps with 'SortableJS'

Description

Enables drag-and-drop behaviour in Shiny apps, by exposing the functionality of the 'SortableJS' JavaScript library as an 'htmlwidget'. You can use this in Shiny apps and widgets, 'learnr' tutorials as well as R Markdown. In addition, provides a custom 'learnr' question type - 'question_rank()' - that allows ranking questions with drag-and-drop.

Copy Link

Version

Install

install.packages('sortable')

Monthly Downloads

2,898

Version

0.4.5

License

MIT + file LICENSE

Maintainer

Andrie Vries

Last Published

December 13th, 2021

Functions in sortable (0.4.5)

render_sortable

Widget render function for use in Shiny.
is_sortable_options

Check if object is sortable options.
sortable_options

Define options to pass to a sortable object.
rank_list

Create a ranking item list.
sortable

sortable: Drag-and-Drop in 'shiny' Apps with 'SortableJS'
sortable_output

Widget output function for use in Shiny.
sortable_js

Creates an htmlwidget with embedded 'SortableJS' library.
sortable_js_capture_input

Construct JavaScript method to capture Shiny inputs on change.
add_rank_list

Add a rank list inside bucket list.
bucket_list

Create a bucket list.
question_rank

Ranking question for learnr tutorials.
chain_js_events

Chain multiple JavaScript events