Project:jCarousel Lite
Version:5.x-2.0-beta2
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I'd like to have the ability to customize the following part in the view, or if not possible at least through argument handling code:

<?php
function jcarousellite_add_view_js($vid, $c) {
  return
"
    $('.jcarousellite-$vid-$c .item-list').jCarouselLite({
        btnNext: '.jcarousellite-next-$vid-$c',
        btnPrev: '.jcarousellite-prev-$vid-$c',
        mouseWheel: true,
        visible: 4
    });"
;
}
?>

Comments

#1

Version:5.x-2.x-dev» 5.x-2.0-beta2
Status:active» fixed

As of beta 2, the function mentioned above has been renamed to jcarousellite_add_view_js_default() so now you can declare a function with the name "jcarousellite_add_view_js" which takes exactly the same parameters and do whatever customizations you want.

Prior to beta 2, you needed to declare a function named "jcarousellite_add_view_js_vidX(), where X is the view ID, for every view.

#2

Could you provide an example?
Where would you do the overriding?

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here