Please Log in to join the conversation.
Please Log in to join the conversation.
it seems better to use cb list instead of online user module because cblist can use sort and filter option, i do this and it work for me maybe good for future users:Create your carousel however you like then render users within it using CB Online Module and one of its include modes or CB Content Module with substitutions.
.swiper-custom-arrow {
display: flex;
justify-content: space-between;
font-size: 5em;
}
.cbUsersList {
overflow: hidden;
}
.swiper-button-disabled{
opacity: .35;
cursor: auto;
pointer-events: none;
}
form = jQuery('#adminForm');
table = jQuery('#cbUserTable');
table.attr('class', '');
table.addClass('swiper-wrapper');
children = table.children();
jQuery.each(children, function(i, val){jQuery(val).attr('class', '');jQuery(val).addClass('cbUserListRow_co');jQuery(val).addClass('swiper-slide');});
form.append('<div class="swiper-custom-arrow"><span class="swiper-button-prev1">‹</span><span class="swiper-button-next1">›</span></div>');
const swiper = new Swiper('#adminForm', {
loop: false,
slidesPerView: 1,
spaceBetween: 30,
// Navigation arrows
navigation: {
nextEl: '.swiper-button-next1',
prevEl: '.swiper-button-prev1',
},
breakpoints: {
640: {
slidesPerView: 2,
spaceBetween: 5,
},
768: {
slidesPerView: 4,
spaceBetween: 5,
},
1024: {
slidesPerView: 5,
spaceBetween: 5,
},
},
});
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css"/>
<script src="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js"></script>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.