Merge branch 'master' into rename-repo-url

This commit is contained in:
vvakame
2016-03-17 21:06:54 +09:00
1140 changed files with 179704 additions and 179635 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
/// <reference path="../knockout/knockout.d.ts" />
/// <reference path="ko-grid.d.ts" />
module KoGridTests
namespace KoGridTests
{
export interface IGridItem {
name: string;
@@ -30,4 +30,4 @@ module KoGridTests
};
}
}
}
}
+15 -15
View File
@@ -1,4 +1,4 @@
// Type definitions for ko-grid
// Type definitions for ko-grid
// Project: http://knockout-contrib.github.io/KoGrid/
// Definitions by: huer12 <https://github.com/huer12/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -7,7 +7,7 @@
/// <reference path="../knockout/knockout.d.ts" />
declare module kg {
declare namespace kg {
export interface DomUtilityService {
UpdateGridLayout(grid: Grid<any>): void;
BuildStyles(grid: Grid<any>): void;
@@ -47,12 +47,12 @@ declare module kg {
afterSelectionChange?(row: Row<EntityType>): void;
/** Callback if you want to inspect something before selection,
return false if you want to cancel the selection. return true otherwise.
If you need to wait for an async call to proceed with selection you can
use rowItem.changeSelection(event) method after returning false initially.
return false if you want to cancel the selection. return true otherwise.
If you need to wait for an async call to proceed with selection you can
use rowItem.changeSelection(event) method after returning false initially.
Note: when shift+ Selecting multiple items in the grid this will only get called
once and the rowItem will be an array of items that are queued to be selected. */
beforeSelectionChange?: Function;
beforeSelectionChange?: Function;
/** definitions of columns as an array [], if not defined columns are auto-generated. See github wiki for more details. */
columnDefs?: ColumnDef[];
@@ -82,10 +82,10 @@ declare module kg {
enableRowSelection?: boolean;
/** Enables or disables sorting in grid. */
enableSorting?: boolean;
enableSorting?: boolean;
/** filterOptions -
filterText: The text bound to the built-in search box.
filterText: The text bound to the built-in search box.
useExternalFilter: Bypass internal filtering if you want to roll your own filtering mechanism but want to use builtin search box.
*/
filterOptions?: FilterOptions;
@@ -105,7 +105,7 @@ declare module kg {
/** Define a header row template for further customization. See github wiki for more details. */
headerRowTemplate?: any;
/** Enables the use of jquery UI reaggable/droppable plugin. requires jqueryUI to work if enabled.
/** Enables the use of jquery UI reaggable/droppable plugin. requires jqueryUI to work if enabled.
Useful if you want drag + drop but your users insist on crappy browsers. */
jqueryUIDraggable?: boolean;
@@ -115,7 +115,7 @@ declare module kg {
/** Prevent unselections when in single selection mode. */
keepLastSelected?: boolean;
/** Maintains the column widths while resizing.
/** Maintains the column widths while resizing.
Defaults to true when using *'s or undefined widths. Can be ovverriden by setting to false. */
maintainColumnRatios?: any;
@@ -140,18 +140,18 @@ declare module kg {
/** Disable row selections by clicking on the row and only when the checkbox is clicked. */
selectWithCheckboxOnly?: boolean;
/** Enables menu to choose which columns to display and group by.
/** Enables menu to choose which columns to display and group by.
If both showColumnMenu and showFilter are false the menu button will not display.*/
showColumnMenu?: boolean;
/** Enables display of the filterbox in the column menu.
/** Enables display of the filterbox in the column menu.
If both showColumnMenu and showFilter are false the menu button will not display.*/
showFilter?: boolean;
/** Show the dropzone for drag and drop grouping */
showGroupPanel?: boolean;
/** Define a sortInfo object to specify a default sorting state.
/** Define a sortInfo object to specify a default sorting state.
You can also observe this variable to utilize server-side sorting (see useExternalSorting).
Syntax is sortinfo: { fields: ['fieldName1',' fieldName2'], direction: 'ASC'/'asc' || 'desc'/'DESC'}*/
sortInfo?: any;
@@ -159,7 +159,7 @@ declare module kg {
/** Set the tab index of the Vieport. */
tabIndex?: number;
/** Prevents the internal sorting from executing.
/** Prevents the internal sorting from executing.
The sortInfo object will be updated with the sorting information so you can handle sorting (see sortInfo)*/
useExternalSorting?: boolean;
}
@@ -170,7 +170,7 @@ declare module kg {
/** Sets the pretty display name of the column. default is the field given */
displayName?: string;
/** Sets the width of the column. Can be a fixed width in pixels as an int (42), string px('42px'), percentage string ('42%'), weighted asterisks (width divided by total number of *'s is all column definition widths) See github wiki for more details. */
width?: string;
}