SortableList
HTML utility class for creating a sortable table list
abstract deprecated
| since |
3.0 |
|---|---|
| deprecated |
4.0 will be removed in 6.0 Sortable List will be deprecated in favour of a new dragula script in 4.0 |
| package |
Joomla CMS |
Methods
sortable
Method to load the Sortable script and make table sortable
sortable( tableId, formId, sortDir = 'asc', saveOrderingUrl = null, proceedSaveOrderButton = true, nestedList = false) :
static deprecated
| since |
3.0 |
|---|---|
| deprecated |
4.0 will be removed in 6.0 Use the new dragula script Example: 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
boolSet whether a save order button is displayed- nestedList
boolSet whether the list is a nested list
Response
void