Class ::xowiki::includelet::jquery-carousel

::xowiki::includelet::jquery-carousel[i] create ...

Display a sequence of pages via jquery-carousel, based on book includelet.
Defined in /var/www/openacs.org/packages/xowiki/tcl/includelet-procs.tcl

Class Relations

  • class: ::xowiki::IncludeletClass[i]
  • superclass: ::xowiki::includelet::book[i]
::xowiki::IncludeletClass create ::xowiki::includelet::jquery-carousel \
     -superclass ::xowiki::includelet::book

Methods (to be applied on instances)

  • render_items (scripted)

    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]'><ul>\n"  <li>[join [:render_images $pages"</li>\n<li>"]</li>  "</ul></div>\n"
    
    ::xo::Page requireJS urn:ad:js:jquery
    ::xo::Page requireJS "/resources/xowiki/jquery.carousel.min.js"
    ::xo::Page requireJS [subst -novariables {
      $(function(){
        $("#[set id]").carousel(  );
      });
    }]
    return $output