<ul>
<ul> is a Sectional
component that renders an unordered (bulleted) list. The <ul> component can only take <li>
components (list items) as children.
Attributes and Properties
Attributes for <ul>
Other (2)
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 <ul name="u">
Other (4)
$u.disabledboolean. Whether this component is disabled and cannot be interacted with.
$u.fixedboolean. Whether this component's value is fixed and cannot be modified.
$u.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
Common to all components (4)
$u.doenetMLtext. The DoenetML source code that produced this component.
$u.hideboolean. Whether to hide this component from the rendered output.
$u.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$u.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: <ul> with nested <li>
<ul> renders an unordered list, with list items given by <li> children. <ul> is a block component and should not contain any components other than <li> children. Individual <li> children may themselves contain graphs, problems, paragraphs, and other content.
Example: <ul> with more content
<ul> components can only take <li> children. Individual <li> children may themselves contain graphs, problems, paragraphs, and other content.
Attribute Examples
Attribute Example: marker
The marker attribute sets the bullet style for the list items. For an unordered list the valid values are disc, circle, and square; any other value is ignored and the level-based default is used instead. If unspecified, the bullet is determined by the list’s level.
Attribute Example: level
The level attribute sets the (1-based) nesting level of the list, which determines the default bullet: level 1 renders a disc, level 2 a circle, and level 3 a square, cycling for deeper levels. When a <ul> is nested inside another list, its level is computed automatically, so this attribute is typically only set to override that default.