# Class: AjaxRepository

## Repository~ AjaxRepository

Class represents a Repository that stores its data on a remote server, through HTTP requests.

#### new AjaxRepository()

  Source:
    Repository/Ajax.js

### Extends

- Repository

### Members

#### axios

  Convenience alias so subclasses can have direct access to Axios. this.sendDirect()
  Source:
    Repository/Ajax.js

#### _setInitialQueryParams

  Helper for initialize Sets the query params for initial loading
  Source:
    Repository/Ajax.js

#### setParam

  Sets a single query param.
  Source:
    Repository/Ajax.js

#### setParams

  Sets query params
  Source:
    Repository/Ajax.js

#### setBaseParams

  Sets base query params. These params are sent on every request.
  Source:
    Repository/Ajax.js

#### clearParams

  Manually clears all existing (non-base) params including sorting, filtering, and pagination. *Not intended for normal usage,* but rather for testing.
  Source:
    Repository/Ajax.js

#### _onChangeSorters

  Sets sort and direction params. Only one sorter is allowed with this Repository type. Refreshes entities.
  Source:
    Repository/Ajax.js

#### _onChangeFilters

  Sets filter params. Refreshes entities.
  Source:
    Repository/Ajax.js

#### _onChangePagination

  Sets pagination params. Refreshes entities.
  Source:
    Repository/Ajax.js

#### load

  Loads data into the Repository. This loads only a single page of data.
  Source:
    Repository/Ajax.js

#### clear

  Deletes all locally cached entities in repository, usually, the current "page". Does not actually affect anything on the server.
  Source:
    Repository/Ajax.js

#### Search results