mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
24 lines
672 B
TypeScript
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) { }
|
|
});
|