TITAN Library for PHP5  5.6.0
Web Software Development Kit for PHP5
jquery Class Reference

Titan jQuery Class. More...

Public Member Functions

 start ($doc_ready=true)
 
 complete ()
 
 folding ($class_folding= 'folding', $class_foldgrip= 'foldgrip', $class_hidable= 'hidable')
 
 tooltip ($class_tooltip= 'tooltip')
 

Data Fields

 $tooltips = true
 Whether or not to include tooltips jquery in the startup.
 

Detailed Description

Titan jQuery Class.

Class: \tl\output\html\jquery

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.6.0

Member Function Documentation

start (   $doc_ready = true)

Begin jQuery block

Parameters
boolean$doc_ready(optional) Include document ready function? (default) true
complete ( )

Complete jQuery block

folding (   $class_folding = 'folding',
  $class_foldgrip = 'foldgrip',
  $class_hidable = 'hidable' 
)

Folding DIV

Parameters
string$class_foldingThe class of the div you want to fold; must contain descendant divs foldgrip (the link that causes $hidable to be hidden/shown) and hidable (whose contents will be hidden/shown)
string$class_foldgripThe class of the descendant foldgrip div (the link that causes $hidable to be hidden/shown)
string$class_hidableThe class of the descendant hidable div (whose contents will be hidden/shown)

Example:

PHP:        $jquery->folding();  //  "folding" is the default class

HTML 1:     //  This example is hidden until shown, and is very plain
            <div class="folding">
                <div class="foldgrip">
                    This content is always shown... use it for a clickable caption
                </div>
                <div class="hidable hidden">
                    This content is hidden until shown
                </div>
            </div>

HTML 2:     //  This example is shown until hidden, and adds extra classes for style
            <div class="folding">
                <div class="foldgrip">
                    This content is always shown... use it for a clickable caption
                </div>
                <div class="hidable">
                    This content is shown until hidden
                </div>
            </div>
tooltip (   $class_tooltip = 'tooltip')

Tooltip

Parameters
string$class_tooltipthe class of the anchors that will have Tooltips added; the rel must be the id of a hidden container tag for the Tooltip content

Example:

PHP:        $jquery->tooltip();  //  "tooltip" is the default class

HTML:       <a class="tooltip" href="#tooltipdivid">[Link]</a>
            <div class="hidden" id="tooltipdivid"><b>HTML content</b> is <i>accepted</i>.</div>

The documentation for this class was generated from the following file: