![]() |
Framework
3.9
|
DraggableList provides a simple user interface for sorting a list of items. More...
Public Member Functions | |
__construct ($items, $id="draggable_list", $format=null, $handler=null) | |
enableDragReorder ($handler) | |
writeScript () | |
drawList () | |
Public Attributes | |
$items | |
$id | |
$format | |
$listTag = "ul" | |
The HTML list tag type. More... | |
$CSSclass = null | |
CSS class(es) to be applied to the list. More... | |
$styles = null | |
Specific CSS styles to be applied to the list. More... | |
$emptyList = "No items in the list" | |
Message to display when the list is empty. More... | |
$reorderHandler = null | |
Handler script that implements reordering records. More... | |
$dragText = "" | |
Optional text to display above reorderable table. More... | |
DraggableList provides a simple user interface for sorting a list of items.
Users can click and drag items within the list. Sorting is updated on the server via a sort handler that must be able to parse pairs of primary keys and sort order values.
Definition at line 46 of file draggable_list.inc.
DraggableList::__construct | ( | $items, | |
$id = "draggable_list" , |
|||
$format = null , |
|||
$handler = null |
|||
) |
Definition at line 59 of file draggable_list.inc.
DraggableList::drawList | ( | ) |
Definition at line 88 of file draggable_list.inc.
DraggableList::enableDragReorder | ( | $handler | ) |
Definition at line 67 of file draggable_list.inc.
DraggableList::writeScript | ( | ) |
Definition at line 72 of file draggable_list.inc.
DraggableList::$CSSclass = null |
CSS class(es) to be applied to the list.
Definition at line 52 of file draggable_list.inc.
DraggableList::$dragText = "" |
Optional text to display above reorderable table.
Definition at line 57 of file draggable_list.inc.
DraggableList::$emptyList = "No items in the list" |
Message to display when the list is empty.
Definition at line 54 of file draggable_list.inc.
DraggableList::$format |
Definition at line 50 of file draggable_list.inc.
DraggableList::$id |
Definition at line 49 of file draggable_list.inc.
DraggableList::$items |
Definition at line 48 of file draggable_list.inc.
DraggableList::$listTag = "ul" |
The HTML list tag type.
Definition at line 51 of file draggable_list.inc.
DraggableList::$reorderHandler = null |
Handler script that implements reordering records.
Definition at line 56 of file draggable_list.inc.
DraggableList::$styles = null |
Specific CSS styles to be applied to the list.
Definition at line 53 of file draggable_list.inc.