Milkyway\SS\GridFieldUtils\AddExistingPicker
Synopsis
class AddExistingPicker
extends GridFieldAddExistingSearchButton
{
- // members
- protected $searchHandlerFactory;
- protected $addHandler;
- protected $undoHandler;
- protected $urlSegment;
- public boolean $async = true;
- // methods
- public AddExistingPicker setSearchHandlerFactory()
- public callable|null getSearchHandlerFactory()
- public AddExistingPicker setAddHandler()
- public callable|null getAddHandler()
- public AddExistingPicker setUndoHandler()
- public callable|null getUndoHandler()
- public string getUrlSegment()
- public void setUrlSegment()
- public AddExistingPicker async()
- public bool isAsync()
- public void handleSearch()
- public void getHTMLFragments()
- public void getURLHandlers()
Hierarchy
Extends
- GridFieldAddExistingSearchButton
Members
protected
- $addHandler
- $searchHandlerFactory
- $undoHandler
- $urlSegment
public
- $async
Methods
public
- async() — Enable the async picker, when an item is clicked in the list it is automatically added to the list, with an undo option.
- getAddHandler()
- getHTMLFragments()
- getSearchHandlerFactory()
- getURLHandlers()
- getUndoHandler()
- getUrlSegment()
- handleSearch()
- isAsync()
- setAddHandler() — Sets a custom handler for when the add action is called
- setSearchHandlerFactory() — Set a search handler factory, which can create a custom RequestHandler to be used for searching
- setUndoHandler() — Sets a custom handler for undoing the add action
- setUrlSegment()