JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/gray/easyui.css">
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<table id="servicegrid"></table>

JavaScript

$('#servicegrid').datagrid({
    nowrap: false,
    striped: true,
    collapsible:true,
    data:[
        {id:1,short:'short1',long:'long1'},
        {id:2,short:'short2',long:'long2'}
    ],
    pagination: true,
    singleSelect: true,
    sortName: 'sort',
    sortOrder: 'ASC',
    fitColumns: true,
    idField:'id',
    pageSize:30,
    pageNumber: 1,
    queryParams: {"action": "service"},
    columns:[[  
	{field:'id',title:'ID',width:20, sortable: 'true'},  
	{field:'short',title:'Abk.', width:30, sortable: true, editor: 'text' },  
	{field:'long',title:'Service', width:100, sortable: true, editor: 'text' },
	{field:'dict',title:'Beschreibung', width:160, sortable: true, editor: 'text' },
        {field:'sort',title:'Sortierung', width:120, sortable: true, editor: 'numberspinner'},
        {field:'action',title:'', width:100, 
        formatter:function(value,row,index){
                if(row.editing){
                    var link = '<a href="#" onclick="saverow('+index+')">Speichern</a> ';
		    link += '<a href="#" onclick="cancelrow('+index+')">Abrechen</a>';
		}
		else {
                    var link  = '<a href="#" onclick="editrow('+index+')">Ändern</a> ';
		    link += '<a href="#" onclick="deleterow('+index+')">Löschen</a>';
		}
		return link;
	    }
        }
    ]],
    onBeforeEdit:function(index,row){    
        row.editing = true;
        updateActions(index);
    },
    onAfterEdit:function(index,row){
	row.editing = false;
        updateActions(index);
    },
    onCancelEdit:function(index,row){
        row.editing = false;
        //updateActions(index);
    },
});
var p = $('#servicegrid').datagrid('getPager');
$(p).pagination({
    onBeforeRefresh:function(){
        alert('before refresh');
    }
});