class GridFieldLazyLoader implements GridField_DataManipulator, GridField_HTMLProvider (View source)

GridFieldLazyLoader alters the {@link GridField} behavior to delay rendering of rows until the tab containing the GridField is selected by the user.

Methods

getManipulatedData(GridField $gridField, SS_List $dataList)

Empty $datalist if the current request should be lazy loadable.

array
getHTMLFragments(GridField $gridField)

Apply an appropriate CSS class to $gridField based on whatever the current request is lazy loadable or not.

Details

SS_List getManipulatedData(GridField $gridField, SS_List $dataList)

Empty $datalist if the current request should be lazy loadable.

Parameters

GridField $gridField
SS_List $dataList

Return Value

SS_List

array getHTMLFragments(GridField $gridField)

Apply an appropriate CSS class to $gridField based on whatever the current request is lazy loadable or not.

Parameters

GridField $gridField

Return Value

array