This is a set of CWidgets based on Dojo and its widgets system, Dijit.
$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
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:
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 :)
Thank you!
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.
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 login to leave your comment.