flexCard {r2resize}R Documentation

Flexible card container

Description

Expandable flexible card holder for images or navigation items

Usage

flexCard(
  ...,
  height.px = NULL,
  width.px = NULL,
  border.color = "white",
  border.width.px = 1,
  active.panel = 1
)

Arguments

...

list of image containers, see example below

height.px

height of container as numeric

width.px

width of container as numeric

border.color

color of border of each container

border.width.px

width of the container border

active.panel

the active panel or container e.g. 1. Use 0 to make all panels inactive

Value

Multiple cards with flex functionality

Examples for r2resize

More examples and demo pages are located at this link - https://rpkg.net/package/r2resize.

Examples

r2resize::flexCard(
  item1 = c(
  bg = "https://r2resize.obi.obianom.com/m/image1.jpg",
  icon = "edit",
  title="Sample text 1",
  subtitle="A cool subtitle"),
  item2 = c(
  bg = "https://r2resize.obi.obianom.com/m/image2.jpg",
  icon = "edit",
  title="Sample text 2",
  subtitle="A cool subtitle",
  icon.color = "blue",
  text.color = "brown"
  )
)


[Package r2resize version 1.9.1 Index]