Answer the question
In order to leave comments, you need to log in
How to make banner clickable for yii2-gallery-widget?
Hello. I want to use the yii2-gallery-widget to scroll through banners that have a link.
It spins pictures, but I can't make links out of these pictures (
Has anyone come across this widget? ( blueimp and/or yii2-gallery-widget )
Now I use the simplest config for the widget:
$items[] = [
'url' => '/news/',
'src' => '/img/1.jpg',
],
[
'url' => '/news/example2/',
'src' => '/img/example2.jpg',
];
Answer the question
In order to leave comments, you need to log in
You can add a click event handler to clientEvents and redirect to js, here in the code you can see https://github.com/2amigos/yii2-gallery-widget/blo...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question