目录

section-group (1090+)

Overview

Subelement of section-list that does not support position.

Application Scope

Item

Description

Applicable devices

Mobile phones, tablets, Vision products, and telematics devices

Applicable regions

Global

Subelements

Only section-group, section-item, and section-header are supported.

section-group is able to contain multiple section-item elements and section-group subelements. However, it can only contain one section-header. The following headers will be ignored.

Attributes

General attributes are supported.

Styles

Common styles are supported.

Events

In addition to common events, the events listed in the following table are supported.

Event

Parameter

Triggering Condition

change

{

state: 1

}

section-group is expanded or collapsed.

The parameter is mandatory. The options are as follows:

  • 1 (default value): collapsed
  • 2: expanded

Methods

Method

Parameter

Description

expand

{

expand: boolean

}

Expands or collapses a section-group. If the parent node is collapsed, this method will not take effect.

The parameter is mandatory. The options are as follows:

  • true: expands the section-group element.
  • false: collapses the section-group element.

scrollTo

object

Scrolls a section-list to the specified position.

scrollTo parameters

Parameter

Type

Mandatory

Default Value

Description

index

number

Yes

-

Index of the target scrolling position. The index value range is the range of the direct subelement of section-group, excluding section-header.

behavior

string

No

instant

Indicates whether to scroll smoothly or instantly. The options are as follows:

  • smooth
  • instant

Version Change History

Version

Date

Description

1090

2022-05-19

First official version.