Skip to main content
उपयोगकर्ताओं के लिए पेजिनेटर

पदानुक्रम

कंस्ट्रक्टर्स

constructor

new UserPaginator(fetchPage): UserPaginator एक नया पेजिनेटर instance बनाता है।

पैरामीटर

रिटर्न

UserPaginator

इनहेरिट किया गया

Paginator.constructor

में परिभाषित

paginator.ts:90

एक्सेसर

items

get items(): T[] सभी प्राप्त आइटम लौटाता है

रिटर्न

T[]

इससे इनहेरिट किया गया

Paginator.items

में परिभाषित

paginator.ts:97

meta

get meta(): any वर्तमान पेजिनेशन मेटाडेटा प्राप्त करता है

रिटर्न

any

इससे इनहेरिट किया गया

Paginator.meta

में परिभाषित

paginator.ts:104

includes

get includes(): undefined | Record<string, any> वर्तमान includes डेटा लौटाता है

रिटर्न

undefined | Record<string, any>

इनसे इनहेरिट किया गया

Paginator.includes

में परिभाषित है

paginator.ts:111

errors

get errors(): undefined | any[] वर्तमान errors प्राप्त करता है

रिटर्न

undefined | any[]

इनहेरिट किया गया

Paginator.errors

में परिभाषित

paginator.ts:118

done

get done(): boolean जांचें कि पेजिनेशन पूरा हो चुका है या नहीं

रिटर्न

boolean

इससे इनहेरिट किया गया

Paginator.done

में परिभाषित

paginator.ts:125

rateLimited

get rateLimited(): boolean जाँचें कि क्या रेट लिमिट लागू हो गई थी

रिटर्न

boolean

इससे इनहेरिट किया गया

Paginator.rateLimited

में परिभाषित

paginator.ts:132

users

get users(): any[]

रिटर्न

any[]

में परिभाषित

paginator.ts:351

मेथड

fetchNext

fetchNext(): Promise<void> अगला पेज फ़ेच करें और आइटम को मौजूदा instance में जोड़ें यह method डेटा का अगला पेज फ़ेच करता है और आइटम को मौजूदा पेजिनेटर instance में जोड़ता है। यह pagination state और metadata को अपडेट करता है।

रिटर्न

Promise<void> उदाहरण
Throws जब API अनुरोध विफल हो जाए

इससे इनहेरिट किया गया

Paginator.fetchNext

में परिभाषित

paginator.ts:156
next(): Promise<Paginator<any>> अगला पेज नए instance के रूप में प्राप्त करें यह method एक नया पेजिनेटर instance बनाती है, जो अगले पेज से शुरू होता है, और वर्तमान पेजिनेटर की state को प्रभावित नहीं करती।

रिटर्न

Promise<Paginator<any>> अगले पेज के लिए नया पेजिनेटर इंस्टेंस Example

इससे इनहेरिट किया गया है

Paginator.next

में परिभाषित

paginator.ts:211

fetchPrevious

fetchPrevious(): Promise<void> पिछला पेज प्राप्त करता है (यदि समर्थित हो)

रिटर्न

Promise<void>

इससे इनहेरिट किया गया है

Paginator.fetchPrevious

में परिभाषित

paginator.ts:225
previous(): Promise<Paginator<any>> पिछला पेज नए इंस्टेंस के रूप में प्राप्त करें

रिटर्न

Promise<Paginator<any>>

इनहेरिट किया गया

Paginator.previous

में परिभाषित

paginator.ts:260

fetchLast

fetchLast(count): Promise<void> निर्दिष्ट संख्या तक अतिरिक्त आइटम फ़ेच करें

पैरामीटर

रिटर्न

Promise<void>

इससे इनहेरिट किया गया

Paginator.fetchLast

में परिभाषित

paginator.ts:274

reset

reset(): void पेजिनेटर को उसकी आरंभिक स्थिति में रीसेट करें

रिटर्न

void

इनहेरिट किया गया

Paginator.reset

में परिभाषित

paginator.ts:288

[iterator]

[iterator](): Iterator<any, any, undefined> सभी प्राप्त आइटम के लिए इटरेटर

रिटर्न

Iterator<any, any, undefined>

इससे इनहेरिट किया गया है

Paginator.[iterator]

में परिभाषित

paginator.ts:303

[asyncIterator]

[asyncIterator](): AsyncIterator<any, any, undefined> ऐसा Async iterator जो पेजों को अपने-आप फ़ेच करता है

रिटर्न

AsyncIterator<any, any, undefined>

से इनहेरिट किया गया

Paginator.[asyncIterator]

में परिभाषित

paginator.ts:312