Toloka documentation

view.collapse

Expandable block.

Lets you add hidden content that doesn't need to be shown initially or that takes up a large space.

The block heading is always visible.

If you set the defaultOpened property to true, the block is expanded immediately, but it can be collapsed.

Component properties

Name

Type

Description

type*

"view.collapse"

Set component type

label*

string

Block heading.

content*

view

Content hidden in the block.

defaultOpened

boolean

If true, the block is immediately displayed in expanded form. By default, false (the block is collapsed).

hint

string

Hint text.

validation

condition

Validation based on condition.