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
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
Response
void