DraggableList

HTML utility class for creating a sortable table list

abstract
since

4.0.0

Methods

draggable

Method to load the Dragula script and make table sortable

draggable(string $tableId = '', string $formId = '', string $sortDir = 'asc', string $saveOrderingUrl = '', string $redundant = null, boolean $nestedList = false) : void
static
since

4.0.0

Arguments

$tableId

stringDOM id of the table

$formId

stringDOM id of the form

$sortDir

stringSort direction

$saveOrderingUrl

stringSave ordering url, ajax-load after an item dropped

$redundant

stringNot used

$nestedList

booleanSet whether the list is a nested list

Properties

loaded

Array containing information for loaded files

static
since

4.0.0

Type(s)

array