mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
525 B
TypeScript
23 lines
525 B
TypeScript
/// <reference types="jquery" />
|
|
|
|
// Grid
|
|
$(() => {
|
|
(this as any).grid = $('#grid').grid({
|
|
primaryKey: 'ID',
|
|
columns: [
|
|
{ field: 'ID', width: 50, sortable: true },
|
|
{ field: 'Name', sortable: true },
|
|
],
|
|
pager: { limit: 5, sizes: [2, 5, 10, 20] }
|
|
});
|
|
});
|
|
|
|
// Dialog
|
|
$(() => {
|
|
(this as any).dialog = $('#playerModal').dialog({
|
|
autoOpen: false,
|
|
title: 'Player',
|
|
width: 400
|
|
});
|
|
});
|