Constructor Summary
Public Constructor | ||
public |
constructor(options: *) |
Member Summary
Public Members | ||
public |
$options: * |
|
public set |
data: * |
|
public get |
data: * |
|
public |
filtered: * |
|
public get |
has_search: * |
|
public |
items: * |
|
public |
loading: * |
|
public |
|
|
public |
query: * |
|
public |
|
|
public |
sorted: * |
Method Summary
Public Methods | ||
public |
by_id(id: *): * Get an item given its ID
|
|
public |
Empty the list
|
|
public |
fetch(options: [type]): [type] Fetch an unpaginated list.
|
|
public |
on_fetched(data: *) |
|
public |
populate() Populate the data view (filtered and sorted)
|
|
public |
Perform a client-side search
|
|
public |
Perform a client-side sort
|
Inherited Summary
From class Base | ||
public |
$pubsub: * |
|
public |
Call an API endpoint.
|
|
public |
Emit an event on this model instance
|
|
public |
Unregister a listener on an event.
|
|
public |
Register a listener on an event.
|
|
public |
Register once a listener on an event.
|
Public Constructors
public constructor(options: *) source
Override:
Base#constructorParams:
Name | Type | Attribute | Description |
options | * |
Public Members
public $options: * source
public set data: * source
public get data: * source
public filtered: * source
public get has_search: * source
public items: * source
public loading: * source
public query: * source
public sorted: * source
Public Methods
public by_id(id: *): * source
Get an item given its ID
Params:
Name | Type | Attribute | Description |
id | * |
Return:
* |
public fetch(options: [type]): [type] source
Fetch an unpaginated list.
Params:
Name | Type | Attribute | Description |
options | [type] | [description] |
Return:
[type] | [description] |
public on_fetched(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |