ScrollEndEvent
Where a scroll view came to rest, as scroll reports where it is.
Utilização
Render a short checklist
Este tipo é usado por Scroll
import { For, Scroll, Text, store } from 'kuito';
export function PackingList() {
const state = store({ items: [{ title: 'Passport' }, { title: 'Tickets' }] });
return (
<Scroll>
<For each={state.items} fallback={<Text>Add your first item</Text>}>
{(item, index) => <Text padding={12}>{`${index.value + 1}. ${item.title}`}</Text>}
</For>
</Scroll>
);
}Declaração do tipo
export interface ScrollEndEvent extends KuitoEvent<'scrollend'>, ScrollPayload {}Membros 9
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
type | "scrollend" | Sim | — |
target | unknown | Sim | — |
isTrusted | boolean | Sim | — |
x | number | Sim | — |
y | number | Sim | — |
contentWidth | number | Sim | — |
contentHeight | number | Sim | — |
layoutWidth | number | Sim | — |
layoutHeight | number | Sim | — |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.