- Extends
- Children
- Implements
Countable PHPFUI \Interfaces \Walkable Stringable - Traits
Constants |
Methods |
public __construct(PHPFUI The ToFromList implements a two side by side panes that uses can drag and drop from one side to the other. It does not support ordering within panes. It assumes you are picking data from a master list and putting each item in to one group or the other. The data: The ToFromList assumes you have one master array with numeric indexes from 0 to what ever. Each item in the master array must be an array and have an index specified by $callbackIndex. It will be the record number of itself in the master array. This is needed because we can not use the array index from the $inGroup or $notInGroup, as those are subsets of the master array. So each element in the master array must keep track of it's own index in the master array. You can include any other data in this array you want, but it is recommend you have a human readable name, or a way to get this, as you will need to return that in the callback function. The callback: The callback should have the following signature:
|
public getPage() : PHPFUI |
public setInIcon(?mixed $inIcon) : static You can customize the "in" icon (or remove it) by passing in html
|
public setInName(string $inName) : static Sets the header name for the "in" group |
public setOutIcon(?mixed $outIcon) : static You can customize the "out" icon (or remove it) by passing in html
|
public setOutName(string $outName) : static Sets the header name for the "out" group |
public setReadOnly() : static |
Properties |
protected $callback = NULL |
protected string $callbackIndex |
protected array $inGroup |
protected PHPFUI |
protected string $inName = 'In' |
protected string $name |
protected array $notInGroup |
protected PHPFUI |
protected string $outName = 'Out' |
protected PHPFUI |
protected bool $readOnly = false |
Methods |
protected createWindow(array $group, string $type) : string
|
protected getBody() : string |
protected getEnd() : string |
protected getStart() : string |
protected makeDiv(string $id, string $type, string $html) : string |
Properties |
private static bool $outputJs = false |
Methods |
private processRequest() : void |
Properties |
private static bool $outputJs = false |
Methods |