-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
102 additions
and
23 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
55 changes: 55 additions & 0 deletions
55
projects/angular-datatable-advanced/src/lib/angular-datatable-advanced-configuration.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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import {InjectionToken} from '@angular/core'; | ||
|
||
export interface AngularDatatableAdvancedConfiguration { | ||
filterTranslate: FilterTranslate; | ||
} | ||
|
||
export interface FilterTranslate { | ||
contains: string; | ||
startsWith: string; | ||
endsWith: string; | ||
equals: string; | ||
notEquals: string; | ||
range: string; | ||
in: string; | ||
nin: string; | ||
greaterThan: string; | ||
greaterThanOrEquals: string; | ||
lessThan: string; | ||
lessThanOrEquals: string; | ||
|
||
applyFilter: string; | ||
clearFilter: string; | ||
filterOutOptions: string; | ||
filterRangeFrom: string; | ||
filterRangeTo: string; | ||
filterPlaceholder: string; | ||
} | ||
|
||
const DEFAULT_CONFIG: AngularDatatableAdvancedConfiguration = { | ||
filterTranslate: { | ||
contains: 'Contains', | ||
startsWith: 'Starts with', | ||
endsWith: 'Ends with', | ||
equals: 'Equals', | ||
notEquals: 'Not equals', | ||
range: 'Range', | ||
in: 'In', | ||
nin: 'Not in', | ||
greaterThan: 'Greater then', | ||
greaterThanOrEquals: 'Greater then or equals', | ||
lessThan: 'Less than', | ||
lessThanOrEquals: 'Less than or equals', | ||
|
||
applyFilter: 'Apply filter', | ||
clearFilter: 'Clear filter', | ||
filterOutOptions: 'Filter out options', | ||
filterRangeFrom: 'From', | ||
filterRangeTo: 'To', | ||
filterPlaceholder: 'Filter' | ||
} | ||
}; | ||
|
||
export { DEFAULT_CONFIG }; | ||
|
||
export const ANGULAR_DATATABLE_ADVANCED_CONFIGURATION = new InjectionToken('ANGULAR_DATATABLE_ADVANCED_CONFIGURATION'); |
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