Posted by moonray on March 18, 2009 at 1:05am
Jump to:
| 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
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
Automatically closed -- issue fixed for 2 weeks with no activity.