Select

See: https://www.carbondesignsystem.com/components/select/usage/

The select component allows users to choose one option from a list. It is used in forms for users to submit data.

Overview

Select is a type of input that is used in forms, where a user is submitting data and chooses one option from a list.

class carbondesign.tags.select.Select(*args, **kwargs)

Select component.

MODES = ('default', 'inline')

Available variants.

NODE_PROPS = ('light',)

Extended Template Tag arguments.

CLASS_AND_PROPS = ('label', 'help', 'select')

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.

render_inline(values, context)

Output html of the component.

render_tmpl_icon_error(values, context)

Dynamically render a part of the component’s template.

render_tmpl_items(values, context)

Dynamically render a part of the component’s template.