Back to Joomla project (class list)

Class SortableList - list of methods

HTML utility class for creating a sortable table list
Package: Joomla\CMS\HTML\Helpers
Copyright: (C) 2012 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/HTML/Helpers/SortableList.php
Project: Joomla

Method Summary

public static void
(mixed $tableId, mixed $formId, mixed $sortDir = 'asc', mixed $saveOrderingUrl = null, mixed $proceedSaveOrderButton = true, mixed $nestedList = false)

Method to load the Sortable script and make table sortable
Parameters
  • string $tableId DOM id of the table
  • string $formId DOM id of the form
  • string $sortDir Sort direction
  • string $saveOrderingUrl Save ordering url, ajax-load after an item dropped
  • bool $proceedSaveOrderButton Set whether a save order button is displayed
  • bool $nestedList Set whether the list is a nested list
Returns
  • void
Since
  • 3.0
Deprecated
  • 5.0
Show source code of this method: sortable Source Code

Tags Summary

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