Structured List

See: https://www.carbondesignsystem.com/components/structured-list/usage/

Structured lists group content that is similar or related, such as terms and definitions.

Overview

Structured list displays a simple list with a considerable amount of items of read-only values. It helps organize and present grouped information into logical and scannable patterns. The content within a list can be stacked to create hierarchy within the data.

class carbondesign.tags.structured_list.StructuredList(*args, **kwargs)

Structured List component.

WANT_CHILDREN = True

Template Tag needs closing end tag.

SLOTS = ('header',)

Named children.

render_default(values, context)

Output html of the component.

class carbondesign.tags.structured_list.StructuredListSelection(*args, **kwargs)

Structured List Selection component.

WANT_CHILDREN = True

Template Tag needs closing end tag.

SLOTS = ('header',)

Named children.

prepare(values, context)

Prepare values for rendering the templates.

render_default(values, context)

Output html of the component.

class carbondesign.tags.structured_list.StructuredListTh(*args, **kwargs)

Structured List column header component.

WANT_CHILDREN = True

Template Tag needs closing end tag.

render_default(values, context)

Output html of the component.

class carbondesign.tags.structured_list.StructuredListTd(*args, **kwargs)

Structured List column header component.

WANT_CHILDREN = True

Template Tag needs closing end tag.

NODE_PROPS = ('nowrap',)

Extended Template Tag arguments.

prepare(values, context)

Prepare values for rendering the templates.

render_default(values, context)

Output html of the component.

class carbondesign.tags.structured_list.StructuredListRow(*args, **kwargs)

Structured List row component.

WANT_CHILDREN = True

Template Tag needs closing end tag.

NODE_PROPS = ('value',)

Extended Template Tag arguments.

CLASS_AND_PROPS = ('label',)

Prepare xxx_class and xxx_props values.

prepare(values, context)

Prepare values for rendering the templates.

render_default(values, context)

Output html of the component.