<sbsGroup>
<sbsGroup> is a Sectional
component that serves as a container element for multiple <sideBySide> components.
Attributes and Properties
Attributes for <sbsGroup>
Other (5)
[ _componentSizeList ]. List of margin widths between panels.
valigntext. Default vertical alignment for all panels.
valigns[ textList ]. Per-panel vertical alignment values.
componentSize. Total rendered width of the side-by-side container.
[ _componentSizeList ]. List of widths for each panel.
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.
isResponseboolean. Default value: false. Whether this component is treated as a response for the purposes of 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 <sbsGroup name="s">
Other (9)
$s.absoluteMeasurementsboolean. Whether children's widths are interpreted in absolute units.
$s.disabledboolean. Whether this component is disabled and cannot be interacted with.
$s.fixedboolean. Whether this component's value is fixed and cannot be modified.
$s.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$s.gapWidthnumber. The gap width between panels as a percentage of the total container width.
$s.margins[ number ]. Margins between adjacent children.
$s.valigns[ text ]. Vertical alignment of each child.
$s.widths[ number ]. The list of child widths.
Common to all components (4)
$s.doenetMLtext. The DoenetML source code that produced this component.
$s.hideboolean. Whether to hide this component from the rendered output.
$s.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$s.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: <sbsGroup> without attributes
In this example, the <sbsGroup> container is used without any additional attributes.
The default margin between elements is 0.
Attribute Examples
Attribute Example: margins
In this example, two <sideBySide> components are grouped together in
a unit with the <sbsGroup> container. The margins attribute provides a
margin that applies to both <sideBySide> elements.
Attribute Example: width / widths
The widths attribute can be used in the <sbsGroup> container to
set the widths for all of the <sideBySide> components contained in the group.