Class ::xowiki::includelet::jquery-cloud-carousel (public)
::xowiki::IncludeletClass ::xowiki::includelet::jquery-cloud-carousel
Defined in /var/www/openacs.org/packages/xowiki/tcl/includelet-procs.tcl
Display a sequence of pages via jquery-cloud-carousel, based on book includelet.
- Testcases:
- No testcase defined.
Source code: namespace eval ::xowiki::includelet {} ::nsf::object::alloc ::xowiki::IncludeletClass ::xowiki::includelet::jquery-cloud-carousel {set :__default_metaclass ::xotcl::Class set :__default_superclass ::xotcl::Object set :aggregating false set :cacheable false set :localized true set :personalized true} ::xowiki::includelet::jquery-cloud-carousel instproc render_items {-pages:required {-cnames ""} {-allow_reorder ""} -menu_buttons {-with_footer "false"}} { if {$cnames ne "" || $allow_reorder ne "" || $with_footer != "false"} { error "ignoring cnames, allow_reorder, and with_footer for the time being" } set id [:js_name] append output "<div id='[ns_quotehtml $id]'>" [join [:render_images -addClass cloudcarousel $pages] "\n"] "</div>\n" ::xo::Page requireStyle "div.jquery-cloud-carousel div {width:650px; height:400px;background:#000;}" ::xo::Page requireJS urn:ad:js:jquery ::xo::Page requireJS "/resources/xowiki/jquery.mousewheel.min.js" ::xo::Page requireJS "/resources/xowiki/cloud-carousel.1.0.5.min.js" ::xo::Page requireJS [subst -novariables { $(function(){ $("#[set id]").CloudCarousel( { xPos: 300, yPos: 32, buttonLeft: $("#left-but"), buttonRight: $("#right-but"), altBox: $("#alt-text"), titleBox: $("#title-text"), bringToFront: true, mouseWheel:true } ); }); }] return $output } ::nsf::relation::set ::xowiki::includelet::jquery-cloud-carousel superclass ::xowiki::includelet::book ::nx::slotObj -container slot ::xowiki::includelet::jquery-cloud-carouselXQL Not present: Generic, PostgreSQL, Oracle