Skip to main content

Interface: UseSparePartsReturn

Defined in: composables/vue/useSpareParts.ts:126

Properties​

childMachines​

childMachines: Ref<SparePartsMachine[]>

Defined in: composables/vue/useSpareParts.ts:130

Child machines of this node, for rendering alongside the parts.


currentPage​

currentPage: Ref<number>

Defined in: composables/vue/useSpareParts.ts:136

Current page (1-based).


displayParts​

displayParts: ComputedRef<SparePart[]>

Defined in: composables/vue/useSpareParts.ts:128

The parts to render — the controlled prop when set, else the fetched list.


fetchParts​

fetchParts: () => Promise<void>

Defined in: composables/vue/useSpareParts.ts:140

Re-run the fetch. No-op in controlled mode.

Returns​

Promise<void>


goToPage​

goToPage: (page) => void

Defined in: composables/vue/useSpareParts.ts:142

Navigate to a page.

Parameters​

page​

number

Returns​

void


isLoading​

isLoading: ComputedRef<boolean>

Defined in: composables/vue/useSpareParts.ts:134

true while an internal fetch is in flight. Always false when controlled.


itemsFound​

itemsFound: Ref<number>

Defined in: composables/vue/useSpareParts.ts:132

Total parts found.


notFound​

notFound: ComputedRef<boolean>

Defined in: composables/vue/useSpareParts.ts:150

The slug resolved in none of the candidate languages.

Distinct from "resolved but has no parts": this node does not exist, and a host that renders the usual empty listing for it shows a page built entirely from the URL. Always false in controlled mode.


totalPages​

totalPages: Ref<number>

Defined in: composables/vue/useSpareParts.ts:138

Total pages.