addCategoryBlocks: Add list of category items

Description Usage Arguments Value See Also

View source: R/shapes.R

Description

Add list of category items

Usage

1
addCategoryBlocks(orient, input_id, color_map, values)

Arguments

orient

Orientation of the legend. Can be "bottom" (default, horizontal with labels below), "top" (horizontal with labels above), "left" (vertical with labels on the left) and "right" (vertical with labels on the right).

input_id

The CSS class used to trigger interactions

color_map

A list of colors from where the corresponding item color will be retrieved

values

A list of values from which the corresponding item label will be retrieved

Value

A list of the same length as values, containing either "span" or "div" elements depending on the chosen orientation.

See Also

categoricalLegend()


rhenkin/vfinputs documentation built on Oct. 23, 2020, 1:30 a.m.