findAll
Simulate a findAll to a fixture.
store.findAll(request)
store.findAll(request)
simulates a request to
get a list items from the server. It supports the
following params:
- order -
order=name ASC
- group -
group=name
- limit -
limit=20
- offset -
offset=60
- id filtering -
ownerId=5
Parameters
-
request
{Object}
The ajax request object. The available parameters are:
Returns
{Object}
a response object like:
{
count: 1000,
limit: 20,
offset: 60,
data: [item1, item2, ...]
}
where:
- count - the number of items that match any filtering before limit and offset is taken into account
- offset - the offset passed
- limit - the limit passed
- data - an array of JS objects with each item's properties