mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-29 17:07:07 +08:00
(ordered properties/functions the same as documentation at http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jqgriddocs Add test code to jqgrid-tests.ts
27 lines
760 B
TypeScript
27 lines
760 B
TypeScript
// Type definitions for jQuery jqgrid Plugin 1.3
|
|
// Definitions by: Lokesh Peta <https://github.com/lokeshpeta/>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../jquery/jquery.d.ts" />
|
|
/// <reference path="jqgrid.d.ts" />
|
|
|
|
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) { }
|
|
});
|