Yii 1.1: dojo

Wrapper for all Dijit widgets, based on Dojo framework.
16 followers

Descripion

This is a set of CWidgets based on Dojo and its widgets system, Dijit.

Download dojo 0.1

Example

$this->beginWidget('ext.dojo.DijitMenuBar');
 
    $this->beginWidget('ext.dojo.DijitMenuBarItem', array(
        'label' => 'Foo',
    ));
 
        $this->beginWidget('ext.dojo.DijitMenu');
 
            $this->widget('ext.dojo.DijitNumberTextBox');
 
        $this->endWidget();
 
    $this->endWidget();
 
    $this->beginWidget('ext.dojo.DijitMenuBarItem', array(
        'label' => 'Bar',
    ));
 
        $this->beginWidget('ext.dojo.DijitMenu');
 
            $this->widget('ext.dojo.DijitNumberTextBox');
 
        $this->endWidget();
 
    $this->endWidget();
 
$this->endWidget();

Total 3 comments

#4476 report it
Jose Rullan at 2011/07/12 09:07am
Small Correction

emilsedgh:

Thank you for your work! I was having some rendering issues when using the layouts, and finally found out that it was because in the loadDojo method of the DijitWidget class this line:

Yii::app()->clientScript->registerScript('parse', "dojo.parser.parse();", CClientScript::POS_END);

was loading at the end but it wasn't ready when the loading occurred.

I simply modified to load on POS_READY and now it works perfectly :)

Yii::app()->clientScript->registerScript('parse', "dojo.parser.parse();", CClientScript::POS_READY);

Thank you!

#3681 report it
Emil Sedgh at 2011/04/27 01:44pm
Already there!

Whole Dijit, including Select, Dialog and Tree are wrapped (although each one are only a few lines of code, basically only a class).

As for examples, I would appreciate any contribution! I will try to provide better documentation as soon as I find some time, but thats not going to happen anytime soon, unfortunately.

#3679 report it
Rafael Garcia at 2011/04/27 01:26pm
Excellent work!

I tested the sample file and it was v. good, but found no instances of Tree, Select and dialog, could give these examples or even write a wiki how-to.

Thanks!

Leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet