API Docs for: 0.25.0
Show:

InfinityCustomMixin Class

Extends Ember.Mixin
Module: mixins
Parent Module: ember-osf

A custom overlay on ember-infinity that supports loading infinite and paginated relationships For the most part, the API and semantics are identical to ember infinity, except that the means of configuring the store find method is more flexible (supporting relationship queries that do not operate via store methods)

Methods

_requestNextPage

() Promise private

request the next page from the adapter

Returns:

Promise:

A Promise that resolves the next page of objects

apply

(
  • obj
)
private

Parameters:

Returns:

applied object

detect

(
  • obj
)
Boolean private

Parameters:

Returns:

infinityModel

(
  • modelName
  • options
  • boundParams
)
Promise

Use the infinityModel method in the place of this.store.find('model') to initialize the Infinity Model for your route.

Parameters:

  • modelName String

    The name of the model.

  • options Object

    Optional, the perPage and startingPage to load from.

  • boundParams Object

    Optional, any route properties to be included as additional params.

Returns:

reopen

(
  • arguments
)
private

Parameters:

Properties

_storeFindMethod

Function

Repurpose an ember-infinity hook to override the method used for queries

Default: this.store.query