arrange_button: Buttons for *RMarkdown* document

Description Usage Arguments Note

View source: R/markdown.R

Description

Arrange a Shuffle grid in RMarkdown.

Usage

1
2
3
4
5
6
7
8
9
arrange_button(
  label,
  by,
  desc = FALSE,
  status = "default",
  icon = NULL,
  width = NULL,
  ...
)

Arguments

label

The contents of the button.

by

Key(s) defined in shuffle_card to sort elements.

desc

Logical, set to TRUE to sort in decreasing order.

status

Add a class to the buttons, you can use Bootstrap status like 'info', 'primary', 'danger', 'warning' or 'success'. Or use an arbitrary strings to add a custom class, e.g. : with status = 'myClass', buttons will have class btn-myClass.

icon

An optional icon to appear on the button.

width

The width of the input, e.g. '400px', or '100%'.

...

Named attributes to be applied to the button.

Note

Use rmd_group_buttons to position several buttons.


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