220
Views
5
Comments
Solved
Accordion Items
Question


Hello

I'm using the Accordion of Patterns_SilkUI. Although everything seems to work normally, I need help for the following situation:
- whenever I click on an item, I need to be visible only this one, that is, if another is already visible, it should close.
Can anyone help?
thankful

Carlos Messias


2020-02-28 09-46-54
Eduardo Jauch
Solution

Hi, 

What is happening is that each AccirdionItem is inside its own Accordion, so they will operate isolated. 

Put the Accordion widget Around the Table, not inside it. Than all AccordeonItems will be under the same accordion. 

Cheers

UserImage.jpg
G Andrew Duthie
 
MVP

So, I just did a quick test, and the behavior you are asking for appears to be the default.

Can you please share an OML with a simple repro of the issue you're seeing?

Also, what version of the OutSystems platform and Service Studio are you using?

2020-02-28 09-46-54
Eduardo Jauch

Hi Carlos,

How are you using the Accordion?

The pattern is:

Accordion
      |_  AccordionItem 1
      |_ AccordionItem 2
      |_ AccordionItem N

If you are creating a list dynamically, usually we do like this:

Accordion
      |_ List Records
             |_ AccordionItem

Also, be sure that the layout you are using for the page is one from the SilkUI or that if you are using a layout created by you, that it has the JavaScript required:

Cheers.

UserImage.jpg
Carlos Messias

Thanks for your replies.

Please let me know if the image is enough to illustrate how I am using the accordion


2020-02-28 09-46-54
Eduardo Jauch
Solution

Hi, 

What is happening is that each AccirdionItem is inside its own Accordion, so they will operate isolated. 

Put the Accordion widget Around the Table, not inside it. Than all AccordeonItems will be under the same accordion. 

Cheers

UserImage.jpg
Carlos Messias

Perfect

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.