Seed Bible extension API (v1.18.0) / seed-bible/components / TranslationListProps
Interface: TranslationListProps
Properties
canLoadMore?
canLoadMore?: boolean;Whether more language groups exist beyond the current limit.
expandedLanguage?
expandedLanguage?: string | null;Language whose group starts expanded (typically the chosen translation's). A group is also auto-expanded while searching, or when it is the only one.
groups
groups: TranslationLanguageGroup[];Language groups to show, already searched/filtered/limited.
leadingItem?
leadingItem?: ComponentChild;An extra row rendered above every language group, inside the same scrollable list — e.g. the customization picker's "Seed Bible's default" option, which isn't a real Translation and so can't be a language group entry itself. Shown regardless of search/view mode.
onLoadMore?
onLoadMore?: () => void;Reveals the next page of language groups. Omit to hide the control.
Returns
void
onPick
onPick: (translation: Translation) => void;Invoked when a translation row is activated.
Parameters
| Parameter | Type |
|---|---|
translation | Translation |
Returns
void
onScroll?
onScroll?: () => void;Called when the list is scrolled — used to dismiss anchored popovers.
Returns
void
onShowAllTranslations
onShowAllTranslations: () => void;Switches the view mode to "all". Shown as a button when a narrowed view produced no results, so the reader can widen the search in place.
Returns
void
onShowInfo?
onShowInfo?: (translation: Translation, event: MouseEvent) => void;Shows the license/info affordance for translations that carry a notice.
Parameters
| Parameter | Type |
|---|---|
translation | Translation |
event | MouseEvent |
Returns
void
query
query: string;Current search text. Drives whether groups start expanded.
renderActions?
renderActions?: (translation: Translation) => ComponentChild;Extra controls rendered at the end of a translation row.
Parameters
| Parameter | Type |
|---|---|
translation | Translation |
Returns
ComponentChild
selectedTranslationIds
selectedTranslationIds: string[];Ids rendered as chosen (ticked). One for the reader, many for Compare.
totalGroupCount?
totalGroupCount?: number;How many language groups exist in total, shown alongside the load-more control so the cap is visible rather than implied.
viewMode
viewMode: TranslationViewMode;Which slice of the catalog is being shown.