Documentation

InfiniteList extends Component
in package

Component to list record using Ajax. Should implement the following.

  • Rendering of records should be implemented by view includes as it will be used in controller to generate next records.
  • Method specified by route should return Ajax response.
  • In case callback functions are required,
    • Name of that function should be infiniteCallback();
    • Function should be defined outside the component and should be available in window context
  • Usage is limited to one per view in case it requires callback.
  • Sample usage - UserController@index

Table of Contents

$filters  : array<string|int, mixed>
$route  : string
$tableId  : string
__construct()  : mixed
Create a new component instance.
render()  : View|Closure|string
Get the view / contents that represent the component.

Properties

Methods

__construct()

Create a new component instance.

public __construct(string $route, array<string|int, mixed> $filters, string $tableId) : mixed
Parameters
$route : string
  • Controller route action name
$filters : array<string|int, mixed>
  • Array of filter parameters
$tableId : string
  • Id of record table
Return values
mixed

render()

Get the view / contents that represent the component.

public render() : View|Closure|string
Return values
View|Closure|string

Search results