-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(editors): fix couple of small editor bugs found (#563)
* fix(editors): fix couple of small editor bugs found
- Loading branch information
1 parent
529a15c
commit 0894f16
Showing
13 changed files
with
53 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/app/modules/angular-slickgrid/models/editorArguments.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,38 @@ | ||
import { Column, ElementPosition } from './index'; | ||
|
||
export interface EditorArguments { | ||
/** Column Definition */ | ||
column: Column; | ||
|
||
/** Column MetaData */ | ||
columnMetaData: any; | ||
|
||
/** Cell Container DOM Element of where the Editor will be created */ | ||
container: HTMLDivElement; | ||
|
||
/** Slick DataView */ | ||
dataView: any; | ||
|
||
/** Event that was triggered */ | ||
event: Event; | ||
|
||
/** Slick Grid object */ | ||
grid: any; | ||
|
||
/** Grid Position */ | ||
gridPosition: ElementPosition; | ||
|
||
/** Item DataContext */ | ||
item: any; | ||
|
||
/** Editor Position */ | ||
position: ElementPosition; | ||
|
||
// methods | ||
|
||
/** Cancel the Editor Changes */ | ||
cancelChanges: () => void; | ||
|
||
/** Commit the Editor Changes */ | ||
commitChanges: () => void; | ||
} |
3 changes: 3 additions & 0 deletions
3
src/app/modules/angular-slickgrid/models/editorValidatorOutput.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
export interface EditorValidatorOutput { | ||
/** Did the validation pass? */ | ||
valid: boolean; | ||
|
||
/** Validation Error Message when field is invalid */ | ||
msg?: string | null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters