-
Hello. I'd like to have entire row in list mode being a link instead of just icon and text as link. Thanks in Advance |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
you are wrong, the icon is part of the link, with the text. I just verified. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
listen the click on the row, and then simulate the click on the link, with this code in Admin-panel > Custom HTML > Html Head <script>
document.addEventListener('click', ({ target: t }) => {
if (t.tagName === 'LI' && t.closest('ul.dir'))
t.querySelector('a')?.click()
})
</script> |
Beta Was this translation helpful? Give feedback.
-
i'm already collecting some at https://github.com/rejetto/hfs/wiki/Customization#examples at the moment it's just a section in the page, but as it grows it can become a dedicated page, or even a collection of pages. |
Beta Was this translation helpful? Give feedback.
listen the click on the row, and then simulate the click on the link, with this code in Admin-panel > Custom HTML > Html Head