JHtmlSortablelist
HTML utility class for creating a sortable table list
since |
3.0 |
---|---|
deprecated |
5.0 Sortable List will be deprecated in favour of a new dragula script in 4.0 |
package |
Joomla.Libraries |
Methods
_proceedSaveOrderButton
Method to inject script for enabled and disable Save order button when changing value of ordering input boxes
_proceedSaveOrderButton() : void
since |
3.0 |
---|---|
deprecated |
4.0 The logic is merged in the JLayout file |
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
since |
3.0 |
---|---|
throws |
|
deprecated |
5.0 In Joomla 4 call JHtml::_('dragablelist.dragable') 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
boolean
Set whether a save order button is displayed- $nestedList
boolean
Set whether the list is a nested list
Properties
loaded
Array containing information for loaded files
since |
3.0 |
---|---|
deprecated |
4.0 This property will be removed without replacement |
Type(s)
array