arlas-web-components / Exports / ResultScrollDirective
Class: ResultScrollDirective
Implements
OnChanges
Table of contents
Constructors
Properties
- fetchState
- items
- nbGridColumns
- nbLinesBeforeFetch
- nextDataEvent
- previousDataEvent
- resultMode
- scrollOptions
- visibleItems
Methods
Constructors
constructor
• new ResultScrollDirective(el
)
Parameters
Name | Type |
---|---|
el |
ElementRef <any > |
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:50
Properties
fetchState
• fetchState: Object
Type declaration
Name | Type |
---|---|
endListDown |
false |
endListUp |
true |
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:35
items
• items: Item
[]
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:31
nbGridColumns
• nbGridColumns: number
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:33
nbLinesBeforeFetch
• nbLinesBeforeFetch: number
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:32
nextDataEvent
• nextDataEvent: Subject
<Map
<string
, ItemDataType
>>
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:38
previousDataEvent
• previousDataEvent: Subject
<Map
<string
, ItemDataType
>>
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:39
resultMode
• resultMode: ModeEnum
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:34
scrollOptions
• scrollOptions: Object
Type declaration
Name | Type |
---|---|
maintainScrollDownPosition |
boolean |
maintainScrollUpPosition |
boolean |
nbLines |
number |
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:36
visibleItems
• visibleItems: Subject
<Item
[]>
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:40
Methods
adjustScrollToMode
▸ adjustScrollToMode(): void
This method allows to stay around the same items when switching the mode grid/list
Returns
void
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:83
ngOnChanges
▸ ngOnChanges(changes
): void
Parameters
Name | Type |
---|---|
changes |
SimpleChanges |
Returns
void
Implementation of
OnChanges.ngOnChanges
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:52
onScroll
▸ onScroll(event
): void
Parameters
Name | Type |
---|---|
event |
any |
Returns
void
Defined in
projects/arlas-components/src/lib/components/results/result-directive/result-scroll.directive.ts:99