@empathyco/x-components
Version:
Empathy X Components
78 lines (35 loc) • 1.11 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [ScrollMutations](./x-components.scrollmutations.md)
## ScrollMutations interface
Scroll store mutations.
**Signature:**
```typescript
export interface ScrollMutations
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[setPendingScrollTo](./x-components.scrollmutations.setpendingscrollto.md)
</td><td>
</td><td>
(pendingScrollTo: string) => void
</td><td>
Sets the identifier of the element that is pending to be scrolled into the view.
</td></tr>
<tr><td>
[setScrollComponentState](./x-components.scrollmutations.setscrollcomponentstate.md)
</td><td>
</td><td>
(partialState: [ScrollStatePayload](./x-components.scrollstatepayload.md)<!-- -->) => void
</td><td>
Sets the scroll position of a certain panel.
</td></tr>
</tbody></table>