<group>
<group>
is a General Operator
component that collects individual DoenetML components into a single named element.
Attributes and Properties
Attribute | Type | Values |
---|---|---|
asList = "…" | "true" "false" | |
createComponentOfType = "…" | ||
numComponents = "…" | ||
rendered = "…" | boolean | "true" "false" |
Property | Type |
---|---|
$g.rendered | boolean |
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.