zoneItems: Create items for dragzones/dropzones

Description Usage Arguments Value

View source: R/dndselect.R

Description

Creates the individual draggable items and options in drag and drop zones.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
zoneItems(
  zone,
  type,
  items,
  ids = rep(NA, length(items)),
  selected = NULL,
  invisible = NULL,
  locked = NULL,
  freeze = NULL,
  togglevis = FALSE,
  togglelock = FALSE
)

Arguments

zone

Container zone type: either drop or drag

type

Are these options or presets?

items

List of item labels, with names corresponding to values

ids

If multivalued, these will be unique ids

selected

Selected items (array length of items - either NA or ds-selected)

invisible

Invisible items (array length of items - either NA or ds-invisible)

locked

Locked items (array length of items - either NA or ds-locked)

freeze

No items allowed before these. Analogous to freezing the first few columns of a spreadsheet (array length of items - either NA or ds-freeze). Makes since only for first initial items, and when used in conjunction with locked. Frozen items also cannot be toggled.

togglevis

Add an icon to allow toggling items between visible/invisible.

togglelock

Add an icon to allow toggling items between locked/unlocked.

Value

div element


serenity-r/dndselectr documentation built on March 12, 2021, 8:37 a.m.