Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Problem with expanding table

Avatar

Level 1

I have a table that expands when a button is clicked.

My problem is that when I type into the table cells then click the expand button,

the content I have typed stays in the same place and the new table appears bellow.

What I need is this to work in reverse, the previous content should cascade further down

the page each time the expand button is clicked leaving an empty table at the top of the page,

ready for new content.

I'm sure this can be done in the pagination settings, however I have tried trial and error but still

haven't managed to acheive this.

Regards Maxwell

1 Reply

Avatar

Level 10

Hi,

The instanceManager method of addInstance, will automatically place the new instance at the end. You can use addInstance and then moveInstance methods together to get the new instance at the desired position. See examples here: http://assure.ly/gk8Q7a.

Alternatively you should check out the insertInstance method.

Hope that helps,

Niall

Testing link...

Message was edited by: Niall O\'Donovan