<group>

<group> is a General Operator component that collects individual DoenetML components into a single named element.

Attributes and Properties

Attributes for <group>
AttributeTypeValues
asList = "…""true" "false"
createComponentOfType = "…"
numComponents = "…"
rendered = "…"boolean"true" "false"
Props for <group name="g">
PropertyType
$g.renderedboolean

Example: Grouping points for graphing

A <group> of <point> components is defined in a <setup> block. All of the points can then be rendered on a <graph> at once using a single reference to the name of the <group>, $points.


Example: A <group> of different components

A <group> need not be composed of a single type of element. Objects defined within a <group> can be collectively hidden.