Introduction ¶
Yii EasyUI is a extension of Yii that helps to work with jQuery EasyUI library.
The extension implements widgets for writing the componentes javascript.
Usage ¶
Download http://www.jeasyui.com/download, extracting content in js/jquery-easyui
Download yii-easyui yii-easyui extracting content in protected\extensions
Configuration ¶
Is necessary that the controllers extends of class EuiController
Yii::import('ext.yii-easyui.base.EuiController');
class SiteController extends EuiController {
public function actionIndex()
{
$this->render('index');
}
}
Widget ¶
$this->widget('ext.yii-easyui.widgets.EuiWindow', array(
'id' => 'win',
'title' => 'My Window',
'style' => 'width:500px;height:250px;padding:10px;'
));
Results:
The jQuery EasyUI looks very powerful
Thanks for sharing.
My first impression of the default theme was that it looks a bit outdated, but I noticed there are several default themes available in addition to a powerful theme builder on the EasyUI website. So I guess you can easily get the look and feel you want.
One thing that would be interesting to know, is why you selected EasyUI in the first place and how it compares to other similar libraries.
Reasons for the choice
This choice has as its main point the library size. The library has only 296K, and has all the features you want in a rich interface.
API?
I can see where the properties of the components? for example, what is the pripiedad to write the text in modal
Missing documentation
Really, the documentation don't was generated.
Currently, is necessary look the widget class for to find the properties.
You also look jQuery EasyUI Documentation.
All properties have been implemented in the widgets
I will work for to generate the api documentation
OK
@ leandrogehlen.
ok. The problem is that seeing api easyui with yii all you would be doing is just reading an action, but if that is the solution I will do so. Sorry for my English
Use examples
In this repository yii-easyui-website
contains use examples of widgets.
I hope it helps you.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.