Closed (fixed)
Project:
jCarousel Lite
Version:
5.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2009 at 01:05 UTC
Updated:
2 Apr 2009 at 10:30 UTC
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
Comment #1
owahab commentedAs 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.
Comment #2
moonray commentedCould you provide an example?
Where would you do the overriding?