grid_stack_item {gridstackeR}R Documentation

Grid Stack Item

Description

This is a wrapper for the individual items to be displayed in the grid_stack Check the gridstack documentation for more information.

The default for all parameters is an empty string, this will make them disappear for gridstackjs

Usage

grid_stack_item(
  ...,
  id = NULL,
  autoPosition = NULL,
  x = NULL,
  y = NULL,
  w = NULL,
  h = NULL,
  maxW = NULL,
  minW = NULL,
  maxH = NULL,
  minH = NULL,
  locked = NULL,
  noResize = NULL,
  noMove = NULL,
  resizeHandles = NULL
)

Arguments

...

content to include in the grid stack item

id

the id of the item, used for save and load functions, this param is propagated through to lower levels

autoPosition

if set to TRUE x and y attributes are ignored and the element is placed to the first available position. Having either x or y missing will also do that

x, y

element position in columns/rows. Note: if one is missing this will autoPosition the item

w, h

element size in columns/rows

maxW, minW, maxH, minH

element constraints in column/row (default none)

locked

means another widget wouldn't be able to move it during dragging or resizing. The widget can still be dragged or resized by the user. You need to add noResize and noMove attributes to completely lock the widget.

noResize

if set to TRUE it disables element resizing

noMove

if set to TRUE it disables element moving

resizeHandles

- widgets can have their own custom resize handles. For example 'e,w' will make that particular widget only resize east and west.

Value

a grid_stack_item to be placed inside a grid_stack. This item is resizable and draggable by default.

Examples

## Not run: 
grid_stack_item(
h = 2, w = 2, style = "overflow:hidden",
box(
  title = "gridstackeR", status = "success", solidHeader = TRUE, width = 12, height = "100%",
  div("Drag and scale the Boxes as desired")
)
)

## End(Not run)


[Package gridstackeR version 0.1.0 Index]