Foundry.ForgeListing¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.ForgeListing(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for managing paginated listings from forge services.
Foundry.ForgeListingprovides functionality for handling paginated data from forge services including automatic loading, page management, and model integration. It supports efficient data loading and provides a unified interface for displaying large datasets from forge APIs.New in version 1.1.
- get_auto_load()¶
-
Gets the auto-load property.
New in version 1.1.
- load_all()¶
- Returns:
a [class`Dex`.Future] that resolves to self or rejects with error.
- Return type:
Tries to load all pages of results.
This is done sequentially.
- load_page(page)¶
- Parameters:
page (
int) –- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] or rejects with error.
- Return type:
New in version 1.1.
- set_auto_load(auto_load)¶
-
Sets the auto-load property.
When enabled, the listing will automatically fetch the next page when a request for an item falls into the last currently loaded page.
New in version 1.1.
Property Details¶
- Foundry.ForgeListing.props.auto_load¶
- Name:
auto-load- Type:
- Default Value:
- Flags: