Files
DefinitelyTyped/types/jqgrid/jqgrid-tests.ts
2017-03-24 14:27:52 -07:00

24 lines
672 B
TypeScript

// Type definitions for jQuery jqgrid Plugin 1.3
// Definitions by: Lokesh Peta <https://github.com/lokeshpeta/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
var mydata: any[] = [];
$('#jqGrid')
.jqGrid({
datatype: 'local',
data: mydata,
loadonce: true,
gridview: true,
height: 400,
shrinkToFit: true,
width: null,
colModel: [
{ label: 'Name', name: 'id', width: 75, key: true, align: 'left' },
{ label: 'Description', name: 'description', width: 100 }
],
viewrecords: true, // show the current page, data rang and total records on the toolbar
caption: 'Matches',
onSelectRow(id: any, status: any, e: Event) { }
});