Toloka documentation

view.list

Block for displaying data in a list.

Component properties

Name

Type

Description

type*

"view.list"

Set component type

label

string

Label above the component.

direction

string

Determines the direction of the list:

  • vertical (default) — vertical list
  • horizontal — horizontal list.

hint

string

Hint text.

items*

array

Array of list items.

items[]

view

List item.

rtl

object

In some languages, like Arabic or Hebrew, text is written from right to left. Use this property to set up the correct display mode for the component.

Learn more about RTL languages.

rtl.mode

string

Display mode:

  • ltr — left to right.
  • rtl — right to left.

The chosen value will be added to the dir attribute in the component's HTML code. Learn more about dir.

size

string

Specifies the size of the margins between elements. Acceptable values in ascending order: s, m (default value).

validation

condition

Validation based on condition.