vladzimir/phpeasyui

php wrapper EasyUI without dependency

v1.0 2025-01-26 17:54 UTC

This package is auto-updated.

Last update: 2025-06-26 19:29:23 UTC


README

php wrapper for EasyUI without dependency

Installation

Just copy all files into F3's Easyui folder. Done.

If you use composer, you can add this package by running composer require vladzimir/phpeasyui

Quick Start

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); }")
        )
    )
);

All property start with letter p.

All event start with letter e.

All method start with letter m.

pMethodName()
eEventName()
mNethodName()

Output

$("#test").datagrid({
    "method": "get",
    "onSelect": function () { //function code }
}).datagrid('getPager').pagination({
    "onChangePageSize": function (pageSize) { $.cookie('pageSize',pageSize); }
});

If you need to install components not as a selector, turn second variable to false

Easyui::dataGrid('test', false)

Output

$(test).datagrid();

Documentation

See in code for components or official docs EasyUI https://www.jeasyui.com/documentation/index.php