shuffle_widget: Htmlwidget for 'Shuffle.js'

Description Usage Arguments

View source: R/shuffle_widget.R

Description

Create a grid layout in RMarkdown. Arrange the grid with arrange_buttons and filter it with crosstalk inputs.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
shuffle_widget(
  ...,
  card_list = NULL,
  shared_data = NULL,
  options = shuffle_options(),
  no_card = NULL,
  use_bs_grid = FALSE,
  width = NULL,
  height = NULL,
  shuffleId = NULL
)

Arguments

...

List of shuffle_cards to include.

card_list

Alternative list of shuffle_cards to include.

shared_data

A 'crosstalk' SharedData object where a row represent a shuffle_card and can be used for filter the grid.

options

Options for Shuffle, see shuffle_options.

no_card

UI definition (or text) to display when all cards are filtered out.

use_bs_grid

Allow to use Bootstrap grid system, e.g. same as in column. If TRUE, you can use a width between 1 and 12 in shuffle_card.

width

A numeric input in pixels.

height

A numeric input in pixels.

shuffleId

Use an explicit element ID for the widget. Needed to associate the widget to rmd_group_buttons.


dreamRs/shufflecards documentation built on Dec. 4, 2019, 4:44 a.m.