You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sort): add valueCouldBeUndefined column flag to help sorting (#429)
- this is an opt-in flag because it could bring unwanted behavior and for example it breaks the Row Detail UI when sorting undefined values, so user can opt-in but it's off by default
Co-authored-by: Ghislain Beaulac <ghislain.beaulac@se.com>
Copy file name to clipboardExpand all lines: src/app/modules/angular-slickgrid/models/column.interface.ts
+7
Original file line number
Diff line number
Diff line change
@@ -225,6 +225,13 @@ export interface Column {
225
225
/** Editor Validator */
226
226
validator?: EditorValidator;
227
227
228
+
/**
229
+
* Can the value be undefined? Typically undefined values are disregarded when sorting, when set this flag will adds extra logic to Sorting and also sort undefined value.
230
+
* This is an extra flag that user has to enable by themselve because Sorting undefined values has unwanted behavior in some use case
231
+
* (for example Row Detail has UI inconsistencies since undefined is used in the plugin's logic)
232
+
*/
233
+
valueCouldBeUndefined?: boolean;
234
+
228
235
/** Width of the column in pixels (number only). */
0 commit comments