PHP Classes

jQueryUI PHP wrapper: Generate HTML for pages using jQuery UI widgets

Recommend this page to a friend!
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 2,296 All time: 1,699 This week: 105Up
Version License PHP version Categories
jquery-ui-wrapper 1.0BSD License5HTML, PHP 5
Description 

Author

This package can generate HTML for pages using jQuery UI widgets.

It is made of several classes that can generate HTML and JavaScript for displaying widgets implemented by the jQuery UI framework.

Currently it provides widget wrapper classes for buttons, date pickers, dialogs and generic widgets.

Picture of Jacek Lukasiewicz
Name: Jacek Lukasiewicz is available for providing paid consulting. Contact Jacek Lukasiewicz .
Classes: 6 packages by
Country: Poland Poland
Age: 49
All time rank: 2773 in Poland Poland
Week rank: 312 Down5 in Poland Poland Down
Innovation award
Innovation award
Nominee: 2x

Winner: 2x

Details

This set of classes allows you to easily use jQuery UI widgets using PHP without the use of JavaScript. This Class allows you to create widget with default parameters. For example, simply create a slider: $slider = UiWidget::getWidget('slider'); Allows you to define options for each of them: $slider->setOption('max', 50); $slider->setOption('value', 30); It is also possible to use the events offered by each of the widgets: $slider->addEventHandler('slide', 'slideHndlr'); //where 'slide' is widget event and 'slideHndlr' your JS function $slider->addEventHandler('stop', 'stopHndlr'); ... and methods: $slider->runMethod('disable'); To display the widget you just write: echo $ slider and ready:) This Class package requires jquery-ui-1.8 Please download the jquery-ui from http://jqueryui.com/download Then put the files in the ./css and ./js directories and possibly modify the paths to the your css and js files in the example file index.php For example: <link href="css/ui-lightness/jquery-ui-1.8.12.custom.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery-1.5.1.min.js"> </ script> <script type="text/javascript" src="js/jquery-ui-1.8.12.custom.min.js"> </ script>

  Files folder image Files  
File Role Description
Files folder imagetpl (5 files)
Accessible without login Plain text file README.FIRST Doc. README FILE
Accessible without login Plain text file index.php Example Example using
Accessible without login Image file screen.jpg Output example output
Plain text file uiWidget.php Class The main factory class
Plain text file widgetAbstract.php Class base class
Plain text file buttonWidget.php Class button specific class
Plain text file datepickerWidget.php Class Datepicker specific class
Plain text file dialogWidget.php Class Dialog widget class
Plain text file genericWidget.php Class Generic widget class

  Files folder image Files  /  tpl  
File Role Description
  Accessible without login Plain text file button.tpl.php Aux. button template
  Accessible without login Plain text file datepicker.tpl.php Aux. datepicker template
  Accessible without login Plain text file dialog.tpl.php Aux. dialog template
  Accessible without login Plain text file generic-js.tpl.php Aux. javascript template
  Accessible without login Plain text file generic.tpl.php Aux. generic widget template

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,296
This week:0
All time:1,699
This week:105Up
 User Ratings  
 
 All time
Utility:87%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:81%StarStarStarStarStar
Examples:81%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:380