Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 949 Bytes

ajax-table.md

File metadata and controls

18 lines (14 loc) · 949 Bytes
import { AjaxTable } from '@ninetyine/react-table'


AjaxTable should be used when data is not retrieved from an API. The AjaxTable extends the base Table so can use all of the same props, find out more here.



Props

  • url: The endpoint where dataset is fetched from
  • params: An object that defines params to be passed as a query string when retrieving the dataset
  • responseManipulator: Manipulate the response to return the dataset
  • onLoad: A callback which is triggered after the dataset is retrieved
  • loadingRow: A valid React element to be displayed while the dataset is being retrieved