freewall: The 'freewall' widget

View source: R/freewall.R

freewallR Documentation

The 'freewall' widget

Description

Creates a grid of images.

Usage

freewall(
  images,
  backgroundImages = FALSE,
  widths = 100,
  heights = NULL,
  width = "100%",
  draggable = FALSE,
  animate = TRUE,
  cellW = 100,
  cellH = 100,
  delay = 0,
  fixSize = NULL,
  gutterX = 10,
  gutterY = 10,
  keepOrder = TRUE,
  rightToLeft = FALSE,
  bottomToTop = FALSE,
  elementId = NULL
)

Arguments

images

character vector of paths or urls to some images; for a Shiny app, the image files must be located in the www subfolder

backgroundImages

Boolean, whether to render the images with the CSS property background-image or with img elements

widths

the widths of the images in pixels; if a single value is given, it will be used for all images

heights

the heights of the images in pixels; if a single value is given, it will be used for all images; setting the heights is necessary if backgroundImages=TRUE, otherwise this argument can be set to NULL

width

the width of the container

draggable

Boolean, whether to enable draggability

animate

Boolean, whether to animate

cellW

width of unit, a number of pixels or "auto"

cellH

height of unit, a number of pixels or "auto"

delay

time delay for showing an item

fixSize

see freewall options

gutterX

space between columns, a number of pixels or "auto"

gutterY

space between rows, a number of pixels or "auto"

keepOrder

Boolean, whether to keep the order of the images

rightToLeft

Boolean, whether to let the layout start render from right to left

bottomToTop

Boolean, whether to let the layout start render from bottom to top

elementId

a HTML id for the container (usually useless)

Value

A htmlwidget object.

Examples

freewall(
  nature(), widths = 200, cellW = 200, cellH = 200, draggable = TRUE
)

freewall documentation built on May 29, 2024, 8:44 a.m.