backdrop-contrib / paragraphs

Paragraphs module to control your content flow
https://backdropcms.org/project/paragraphs
GNU General Public License v2.0
5 stars 11 forks source link

Link at the top of the paragraphs field to expand all/collapse all #177

Open herbdool opened 4 months ago

herbdool commented 4 months ago

This d.o issue claims to provide this: https://www.drupal.org/project/paragraphs/issues/2476253, among a bunch of other things. The one feature could maybe be pulled out of it.

herbdool commented 4 months ago

I'm not sure if it's the best idea. In the patch there's this comment:

The JavaScript supports AJAX forms, however it is very inefficient since it has to serially trigger the AJAX callbacks due to Drupal.ajax only allowing 1 request at a time. Example: 9 large paragraphs could take 20+ seconds to collapse / expand.

laryn commented 3 months ago

Right, that patch description doesn't make it sound good.

laryn commented 1 month ago

It would be worth examining how it's done in D10.