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 |
package |
Joomla CMS |
Methods
sortable
Method to load the Sortable script and make table sortable
sortable(string tableId, string formId, string sortDir = 'asc', string saveOrderingUrl = null, bool proceedSaveOrderButton = true, bool 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
string
DOM id of the table- formId
string
DOM id of the form- sortDir
string
Sort direction- saveOrderingUrl
string
Save ordering url, ajax-load after an item dropped- proceedSaveOrderButton
bool
Set whether a save order button is displayed- nestedList
bool
Set whether the list is a nested list