<group>
<group> is a General Operator
component that collects individual DoenetML components into a single named element.
Attributes and Properties
Attributes for <group>
Other (4)
asListboolean. Default value: false. Whether to render the group's children separated by commas (true) or with no separator (false).
createComponentOfTypetext. Component type to wrap each child as when expanding the group.
numComponentsnumber. Number of components to create when expanding (used with createComponentOfType).
renderedboolean. Default value: true. Whether the group's children are rendered.
Common to all components (9)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
disabledboolean. Default value: false. Whether this component is disabled and cannot be interacted with.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixedboolean. Default value: false. Whether this component's value is fixed and cannot be modified.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
hideboolean. Default value: false. Whether to hide this component from the rendered output.
isResponseWhether this group's children should be treated as responses for assessment.
nametext. The name used to reference this component from elsewhere in the document.
styleNumberinteger. Default value: 1. The style number used to select this component's visual styling from the available style definitions.
Properties for <group name="g">
Other (1)
$g.renderedboolean. Whether the group's children are rendered.
Common to all components (3)
$g.doenetMLtext. The DoenetML source code that produced this component.
$g.hideboolean. Whether to hide this component from the rendered output.
$g.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
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.