Login   Register  
PHP Classes

File: tpl/generic-js.tpl.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jacek Lukasiewicz  >  jQueryUI PHP wrapper  >  tpl/generic-js.tpl.php  >  Download  
File: tpl/generic-js.tpl.php
Role: Auxiliary script
Content type: text/plain
Description: javascript template
Class: jQueryUI PHP wrapper
Generate HTML for pages using jQuery UI widgets
Author: By
Last change:
Date: 3 years ago
Size: 580 bytes


Class file image Download
$(function() {
    $( "#<?php print $this->id?>" ).<?php print $this->widget?>({<?php print $this->optionsString?>});
if(!empty($this->methods)) {
                foreach (
$this->methods as $method => $args) {
'$("#'.$this->id.'").'.$this->widget.'( "'.$method.'" , "'.$args.'");';
$this->events)) {
                foreach (
$this->events as $evnt => $hndl) {
'$("#'.$this->id.'" ).'.$this->widget.'({
.$evnt.': function( event, ui ) {'.$hndl.'( event, ui );}