<tap-list-index>
An alphabet index bar for long lists, like iOS contacts. Tap or slide on it to scroll the target into view.
By default the target is the element with the matching data-list-index attribute.
Example
html`
<section data-list-index="A">...</section>
<section data-list-index="B">...</section>
<tap-list-index .items=${['A', 'B']}></tap-list-index>
`;API
Shadow DOM; Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
items |
Yes | ListIndexSource<T>[] |
getTarget |
Yes | (item: ListIndexItem<T>) => Element | null | undefined |
select |
Emitter<T | string> |
Other
| Type | Value |
|---|---|
| Event | select |
| Part | item, current, bubble |
