Descripion ¶
This is a set of CWidgets based on Dojo and its widgets system, Dijit.
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();
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!
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.
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!
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.