Skip to content

Commit

Permalink
issue-351 paused$ reactive wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
dhilt committed Mar 3, 2024
1 parent 030b563 commit a35adaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions scroller/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ interface IReactiveOverride<Item = unknown> {
lastVisible$: BehaviorSubject<IAdapterItem<Item>>;
bof$: Subject<boolean>;
eof$: Subject<boolean>;
paused$: Subject<boolean>;
}

type _Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
Expand Down
3 changes: 2 additions & 1 deletion scroller/src/ui-scroll.datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const getAdapterConfig = (): IAdapterConfig => ({
[AdapterPropName.firstVisible$]: getItemBehaviorSubjectPropConfig(),
[AdapterPropName.lastVisible$]: getItemBehaviorSubjectPropConfig(),
[AdapterPropName.bof$]: getBooleanSubjectPropConfig(),
[AdapterPropName.eof$]: getBooleanSubjectPropConfig()
[AdapterPropName.eof$]: getBooleanSubjectPropConfig(),
[AdapterPropName.paused$]: getBooleanSubjectPropConfig()
}
});

Expand Down

0 comments on commit a35adaf

Please sign in to comment.