F
F
Fyodor Dostoyevsky2014-11-07 12:45:22
Yii
Fyodor Dostoyevsky, 2014-11-07 12:45:22

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

1 answer(s)
E
enchikiben, 2014-11-07
@EnChikiben

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 question

Ask a Question

731 491 924 answers to any question