SortableList

HTML utility class for creating a sortable table list

abstract deprecated
since

3.0

deprecated

5.0 Sortable List will be deprecated in favour of a new dragula script in 4.0

Methods

sortable

Method to load the Sortable script and make table sortable

sortable(string $tableId, string $formId, string $sortDir = 'asc', string $saveOrderingUrl = null, boolean $proceedSaveOrderButton = true, boolean $nestedList = false) : void
static deprecated
since

3.0

deprecated

5.0 In Joomla 4 call JHtml::_('draggablelist.draggable') and add a class of js-draggable to the tbody element of the table

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

$proceedSaveOrderButton

booleanSet whether a save order button is displayed

$nestedList

booleanSet whether the list is a nested list