How to add your favorite jQuery UI plugin as a Raxan widget

Imagine you have found the latest jQuery DatePicker that has all of the latest bells & whistles (like the one created by Keith Wood at Like most jQuery plugins, it comes with the jquery plugin (.js) file, a css file, and an example html file. So, how do you quickly add this to Raxan as a reusable widget? Simple.

Step 1: Copy the jQuery plugin file(s) to the raxan ui/javascripts directory

Step 2: Copy the plugin's css file(s) to the raxan ui/css directory

Step 3: Create the Raxan widget class file


    class DatePickerWidget extends RaxanUIWidget {

        protected function _init() {
            // load the stylesheet jquery.datepick.css
            // load the javascript
            // Bind the datepicker to the element
            // Note that elmID is created in the RaxanUIWidget constructor so it is
            // available here as the jQuery selector


Step 4: Load the new DatePickerwidget in your page controller class

    require_once 'raxan/pdi/autostart.php';

    class IndexPage extends RaxanWebPage {

        protected function _config() {
            $this->masterTemplate ='views/master.html';

        protected function _init() {


Step 5: Start using your new DatePickerWidget in your views

<div class="container">
     <form id="addEmployee" method="post">
            <label class="rax-light-title" for="employeeName">Employee Name</label>  
            <input id="employeeName" class="textbox c26 round" />
            <label class="rax-light-title" for="employeeBirthDate">
            Employee Birth Date</label>
            <br/><input id="employeeBirthDate" 
            class="textbox c17 round" xt-ui="DatePickerWidget" />
            <input id="cmdAdd" type="submit" class="left button rtm " 
            value="Add Employee" xt-bind="#click,saveEmployee,,true" />       

Now, when you want to use the DatePickerWidget on any page, all you have to do is call Raxan::loadWidget('datepickerwidget') in the page controller, and add the xt-ui="DatePickerWidget" on the elements that are used to get dates. Really nice!

Posts: 833
I read your <a href=
Reply #10 on : Sat April 15, 2017, 16:09:30
I read your <a href="">ponistg</a> and was jealous
adidas micropacer og metallic silver
Posts: 833
Reply #9 on : Sat October 06, 2018, 02:44:29
<a href=" sale/air-jordan-14-retro-womens-shoes-grey-black-for-sale">air jordan 14 retro womens shoes grey black for sale</a><a href="">nike air jordan 17 ret low solefly solefly</a><a href="">nike air max 90 se leather gs black black dark grey</a><a href="">nike air max 95 mens black grey purple orange green</a>
[url=]adidas micropacer og metallic silver[/url]
nike lunar command 2 mens golf shoe white white black 849968 100
Posts: 833
Reply #8 on : Sun October 21, 2018, 20:00:29
<a href=" sale/nike-sb-verge-sunglasses">nike sb verge sunglasses</a><a href="">2017 buy cheap nike air max tavas shoes sale black friday</a><a href="">new nike tiempo legend 6</a><a href="">new balance 811 wide</a>
[url=]nike lunar command 2 mens golf shoe white white black 849968 100[/url]
air jordan retro collection
Posts: 833
Reply #7 on : Mon November 12, 2018, 20:41:18
<a href="">new balance 610 v5</a><a href="">nike air jordan 1 high gs prm</a><a href="">nike running shoes online</a><a href="">mens nike fi-rue zoom black white shoes</a>
[url=]air jordan retro collection[/url]
womens nike air max tn running shoes white leather grey silver
Posts: 833
Reply #6 on : Tue November 20, 2018, 01:07:50
<a href="">nike lebron 15 city edition wolf grey metallic gold cool grey outlet</a><a href="">nike air foamposite one shine for sale</a><a href="">nike mercurial vortex iii fg mens soccer shoes cristiano ronaldo seaweed hasta white volt</a><a href="">real nike hyperchase artisan teal light retro black hot lava</a>
[url=]womens nike air max tn running shoes white leather grey silver[/url]
nike air max 95 premium w shoes
Posts: 833
Reply #5 on : Tue November 27, 2018, 20:12:54
<a href="">tenis adidas adizero precio</a><a href="">nike lunar force 1 fuse lthr mens shoes wolf grey dp ryl blue atmc rd 10.5</a><a href="">adidas adipure flex wd zapatos de golf para hombre blanco negro plata 40.6 eu</a><a href="">zapatillas nike nueva temporada outlet baratas espa?a 2018</a>
[url=]nike air max 95 premium w shoes[/url]
nike free run sale dames
Posts: 833
Reply #4 on : Mon January 14, 2019, 14:35:24
<a href="">chaussures adidas falcon elite 5 w</a><a href="">nike flyknit roshe run prm black</a><a href="">nike zoom rival s 9 femmes chaussures de course ? pointes ho18</a><a href="">nike schuhe gr?sse 36 junge</a>
[url=]nike free run sale dames[/url]
nike sb check solar skate zapatos para hombre negro blanco casual zapatillas zapatillas
Posts: 833
Reply #3 on : Sun March 24, 2019, 20:05:47
<a href="">new balance furon 4 0 pro firm ground femme</a><a href="">nike womens eclipse ii premium mujer</a><a href="">adidas pro conference dame</a><a href="">asics gel lyte iii camo pack aloe mujer</a>
[url=]nike sb check solar skate zapatos para hombre negro blanco casual zapatillas zapatillas[/url]
nike air jordan 1 retro high black cement grey white dames
Posts: 833
Reply #2 on : Fri March 29, 2019, 19:12:28
<a href="">homme air jordan 4 noir et bleu</a><a href="">nike air jordan retro xi 11 low 2015 mujer</a><a href="">scarpe nike scontate on line</a><a href="">air max flyknit pas cher taille 39</a>
[url=]nike air jordan 1 retro high black cement grey white dames[/url]
2017 best nike roshe womens running shoes baby pink
Posts: 833
Reply #1 on : Sat March 30, 2019, 20:14:18
<a href="">nike air jordan 1 6 rings red 555088 112 09</a><a href="">vans x storm low top red with flames</a><a href="">nike air max 90 premium brown lime</a><a href="">nike kyrie 2 snapdeal</a>
[url=]2017 best nike roshe womens running shoes baby pink[/url]
First | Previous | Showing comments 781 to 790 of 790

Leave a Comment

Required fields are marked with *.
If you have trouble reading the code, click on the code itself to generate a new random code.