CXM_jquery_jqplot.anubis 1.14 KB
/*
 * Created by PyramIDE.
 * User: Totoro
 * Date: 17/05/2014
 * Time: 12:19
 *
 */

read calexium_lib/web/CXM_making_a_web_site.anubis
read tools/basis.anubis

 public define HTML_Partial_Content
  jqplot
  (
    String  img_url,
    String  label_text,
    String  action
  )=
  partial_content(
    [
      js_inline(script("","$(document).ready(function(){$('#jq_img_btn').button();});"))
    ],
        div([id("jq_img_btn")],
        table([
              row( cell( actioner(same,same, img_link(img_url, label_text), action, []))),
              row( cell( actioner(same,same, link(label_text), action, [])))
              ]
             )
       ))
    
  .
  
public define HTML_Head_Tag
  jqplot_plugin
  (
    String plugin
  )=
  js(js_file("/js/jquery/jqplot/plugins/jqplot."+plugin+".min.js"))
  .
  
/* jQuery default js files */
define List(HTML_Head_Tag)
   jqplot_defaults
   =
   [
     js(js_file("/js/jquery/jqplot/jquery.jqplot.min.js")),
     css(css_file("/js/jquery/jqplot/jquery.jqplot.min.css")),
   ].


/* Initialize jQuery in compatiblity mode with jQueryUI */
public define List(HTML_Head_Tag)
  jqplot_init
  =
  jqplot_defaults.