Skip to content

cubx-accordion-ctrl: allow preselect  #8

@jtrs

Description

@jtrs

Give a configuration for preselect by initalisation.

Add expanded Property to itemSelectors structure:

<cubx-accordion-ctrl cubx-webpackage-id="this">
    <cubx-core-init style="display:none;">
        <cubx-core-slot-init slot="itemSelectors">
            [
            {"head": ".accordion-head11", "body":".accordion-body11", "expanded": true},
            {"head": ".accordion-head12", "body":".accordion-body12"},
            {"head": ".accordion-head13", "body":".accordion-body13", "expanded": true},
            {"head": ".accordion-head14", "body":".accordion-body14"}
            ]
        </cubx-core-slot-init>
    </cubx-core-init>
</cubx-accordion-ctrl>

Metadata

Metadata

Assignees

Labels

enhancement[email protected]It should be implemented for cubx.core.rte 2.x version.[email protected]It should be implemented for rte 3.x version.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions