Hey @trickfun, to implement this functionality quickly, I have used the following approach:
- Added a new class 'custom-scroll' to the Load more button.
- Added 'hide' class to hide the Load More button.
- Created libraries.yml file and added a library.
- Created a JavaScript file, included it in the library, and attached the library to the field formatter (similar to how core/drupal.ajax is attached).
- In the JavaScript file, obtained the custom-scroll element and measured its height.
- After scrolling to a particular height, triggered a click event on the Load More button from the JavaScript file.
I know this should not be the actual implementation of this, but I hope it helps.
Let me know if you want more information.
ankitdebnath โ made their first commit to this issueโs fork.
Hey @eleonel thanks for the review. I have added both the cases.
ankitdebnath โ created an issue.
I am working on it.
ankitdebnath โ created an issue.
ankitdebnath โ made their first commit to this issueโs fork.
I am working on it.
Thanks for the solution @drubb. It works for me.
ankitdebnath โ created an issue.
Hello @kriboogh, thanks for the review. I have changed the code according to the requirements. Please check it out.
I am closing this issue because the D10 version of this module is available in : Node Class For Drupal 10 โ
ankitdebnath โ made their first commit to this issueโs fork.
This looks good to me.
The key tab_root_id is not working. The title Aliases should appear in the task menu links along with Edit & Delete.
But its working fine with the changes as expected.
ankitdebnath โ created an issue.
ankitdebnath โ created an issue.
ankitdebnath โ made their first commit to this issueโs fork.