Problem/Motivation
Attach ajaxified link to the gridstack container children.
Issue fork paragraphs_gridstack-3337103
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
panchukComment #3
panchukComment #6
royalpinto007This change was made to enhance the user experience and improve page performance. By utilizing AJAX, we are able to retrieve and update data asynchronously, allowing the user to interact with the page while data is being loaded. The Gridstack container children serve as a perfect candidate for this functionality, as they require frequent updates to their contents.
Comment #7
panchuk@royalpinto007 Thanks for your contribution to Paragraphs Gridstack.
I didn't add a good description for this task, so probably you didn't understand the idea of the task.
Also, this issue is already assigned to another contributor and this is a bad tone to work on assigned tasks.
The first problem with your MR is using a 'field_children' field name to get a child paragraphs, but this is a paragraph behavior plugin and it could be applied to any type of paragraph.
The second problem is using 'entity.node.canonical' for generating a Link to the paragraph. Also, the setOptions() method is not applicable to the Link object. It works only for a URL object.
And the last piece of code that doesn't work:
Comment #8
panchuk@royalpinto007 How did you write this code? Did you use some kind of AI e.g. ChatGPT?
Comment #10
panchukComment #11
panchukComment #12
royalpinto007Oops, I didn't notice that it was already assigned to someone else. I apologize for the same.
Also, I made changes in the code taking some reference from the Stack Overflow website.
Comment #13
andrii momotov commentedComment #15
andrii momotov commented