-
Hi, I need to ajaxify all links and forms except class noajax and except all links to pdf a docs files. But I can't figured out, how to do the same with Naja. Can You Help me, please? |
Beta Was this translation helpful? Give feedback.
Answered by
jiripudil
Mar 26, 2021
Replies: 1 comment 1 reply
-
Hello, there is currently no imperative API to achieve this, but I think you should be able to use the selector configuration to exclude these links: naja.uiHandler.selector = '.ajax:not([href$=".pdf"]):not([href$=".docx"])'; To take effect, this must be set before calling |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zddors
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, there is currently no imperative API to achieve this, but I think you should be able to use the selector configuration to exclude these links:
To take effect, this must be set before calling
naja.initialize()
.