| flexCard | R Documentation |
Expandable flexible card holder for images or navigation items
flexCard( ..., height.px = NULL, width.px = NULL, border.color = "white", border.width.px = 1, active.panel = 1 )
... |
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 |
Multiple cards with flex functionality
More examples and demo pages are located at this link - https://rpkg.net/package/r2resize.
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" ) )