PHP code example of vladzimir / phpeasyui

1. Go to this page and download the library: Download vladzimir/phpeasyui library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vladzimir / phpeasyui example snippets

 php
use Easyui\Easyui;

echo Easyui::dataGrid('test')->
pMethod('get')->
eOnSelect(new Js("function(){ //function code }"))->
append(
    Easyui::dataGrid()->
    mGetPager()->append(
        Easyui::pagination()->
        eOnChangePageSize(
            new Js("function (pageSize) { $.cookie('pageSize',pageSize); }")
        )
    )
);
 php
pMethodName()
eEventName()
mNethodName()
 js
$("#test").datagrid({
    "method": "get",
    "onSelect": function () { //function code }
}).datagrid('getPager').pagination({
    "onChangePageSize": function (pageSize) { $.cookie('pageSize',pageSize); }
});
 php
Easyui::dataGrid('test', false)