Skip to main content

Interface: UseSparePartsReturn

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

Properties

childMachines

childMachines: Ref<SparePartsMachine[]>

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

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


currentPage

currentPage: Ref<number>

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

Current page (1-based).


displayParts

displayParts: ComputedRef<SparePart[]>

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

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


fetchParts

fetchParts: () => Promise<void>

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

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

Returns

Promise<void>


goToPage

goToPage: (page) => void

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

Navigate to a page.

Parameters

page

number

Returns

void


isLoading

isLoading: ComputedRef<boolean>

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

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


itemsFound

itemsFound: Ref<number>

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

Total parts found.


totalPages

totalPages: Ref<number>

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

Total pages.