Possible to have two sections collapse with one action?

Hi
I am looking for a way yo have one collapsing active for to sections (when collapsing the section another section should also be collapsed) is there a way to do that?

OriginalPostID-200995

OriginalPostID-200995

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer
    This can be achieved with 17.2 version in which we have the concept of columns and column layout.
    You can have once section and then inside contents you can have two columnsLayout inside that and then replace other sections with columnLayout.

    a!sectionLayout(
    label: "Test0",
    isCollapsible: true(),
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    a!textField(
    label: "Test"
    )
    )
    }
    ),
    a!columnsLayout(
    columns:{
    a!columnLayout(
    a!textField(
    label: "Test1"
    )
    ),
    a!columnLayout(
    a!columnLayout(
    a!textField(
    label: "Test2"
    )
    )
    )
    }
    )
    }
    )
Reply
  • 0
    Certified Associate Developer
    This can be achieved with 17.2 version in which we have the concept of columns and column layout.
    You can have once section and then inside contents you can have two columnsLayout inside that and then replace other sections with columnLayout.

    a!sectionLayout(
    label: "Test0",
    isCollapsible: true(),
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    a!textField(
    label: "Test"
    )
    )
    }
    ),
    a!columnsLayout(
    columns:{
    a!columnLayout(
    a!textField(
    label: "Test1"
    )
    ),
    a!columnLayout(
    a!columnLayout(
    a!textField(
    label: "Test2"
    )
    )
    )
    }
    )
    }
    )
Children
No Data