-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update filter model to better suit the AgGrid structure (#18)
- Loading branch information
Showing
33 changed files
with
396 additions
and
456 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
namespace Ctoss.Example; | ||
|
||
public static class JsonExamples | ||
{ | ||
/// <summary> | ||
/// This JSON snippet contains an example of the date range filter with | ||
/// an illustration that field is case-insensitive. | ||
/// </summary> | ||
public const string PlainDateRangeFilter = | ||
""" | ||
{ | ||
"filters":{ | ||
"PrOpErTy":{ | ||
"filterType":"date", | ||
"type":"inRange", | ||
"dateFrom":"10/10/2002", | ||
"dateTo":"10/12/2020" | ||
} | ||
} | ||
} | ||
"""; | ||
|
||
/// <summary> | ||
/// This illustrates how to define multiple conditions, and use CTOSS configuration to define the virtual field ms | ||
/// </summary> | ||
public const string MultipleConditionsNumberFilter = | ||
""" | ||
{ | ||
"filters":{ | ||
"mc":{ | ||
"filterType":"number", | ||
"operator": "and", | ||
"conditions":[ | ||
{ | ||
"filterType":"number", | ||
"type":"GreaterThan", | ||
"filter":"10" | ||
}, | ||
{ | ||
"filterType":"number", | ||
"type":"LessThan", | ||
"filter":"15" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
"""; | ||
|
||
|
||
} |
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
Oops, something went wrong.