tinyslider_cards: Create cards for the tinyslider carousel

Description Usage Arguments Details Value Examples

Description

Create cards for the tinyslider carousel

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
tinyslider_card(
  title = NULL,
  subtitle = NULL,
  content = NULL,
  button_text = NULL,
  image = NULL,
  width = NULL
)

tinyslider_card_2(
  title = NULL,
  subtitle = NULL,
  content = NULL,
  button_text = NULL,
  image = NULL,
  width = NULL
)

Arguments

title

Title of the card

subtitle

Subtitle of the card

content

Text of the card

button_text

Display some text inside a button placed at the bottom of the card. If NULL, the button is not created.

image

An image to place on top of the card.

width

Width of the card as a character, in px or in %.

Details

tinyslider_card and tinyslider_card_2 are very similar. The only difference is in the layout of the card. The latter creates a card with two columns. If image is not NULL, tinyslider_card puts an image at the top of the card, and tinyslider_card_2 puts an image in the left column.

Value

A card in HTML code.

Examples

1
2
3
## Not run: 
tinyslider_card("This is a title", "This is a subtitle")
## End(Not run)

etiennebacher/shinymisc documentation built on Jan. 1, 2021, 1:14 a.m.