Creates the individual draggable items and options in drag and drop zones.
zoneItems( zone, type, items, ids = rep(NA, length(items)), selected = NULL, invisible = NULL, locked = NULL, freeze = NULL, togglevis = FALSE, togglelock = FALSE )
zone | Container zone type: either |
---|---|
type | Are these |
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. |
div element