Skip to content

Commit bd6c9d5

Browse files
authored
Export service and utility function (#2246)
* Changes v1 * Update changelog
1 parent 545aa41 commit bd6c9d5

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## HEAD (unreleased)
44

5+
- Enhancement: Exporting isNullOrUndefined function and ColumnChangesService service to be used externally.
6+
57
## 22.0.0-alpha.0
68

79
- Enhancement: Added support for Angular 20

projects/swimlane/ngx-datatable/src/lib/utils/column-helper.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ export function toInternalColumn<T extends Row>(
4444
} as TableColumnInternal; // TS cannot cast here
4545
});
4646
}
47+
48+
export function isNullOrUndefined<T>(value: T | null | undefined): value is null | undefined {
49+
return value === null || value === undefined;
50+
}

projects/swimlane/ngx-datatable/src/public-api.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ export * from './lib/directives/disable-row.directive';
2525
export * from './lib/types/public.types';
2626
export * from './lib/types/table-column.type';
2727

28+
// services
29+
export * from './lib/services/column-changes.service';
30+
31+
// utilis
32+
export * from './lib/utils/column-helper';
33+
2834
export {
2935
providedNgxDatatableConfig,
3036
NgxDatatableConfig,

0 commit comments

Comments
 (0)