Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe SortableList

Fonctions membres publiques statiques

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

Description détaillée

HTML utility class for creating a sortable table list

Depuis
3.0
Obsolète:
5.0 Sortable List will be deprecated in favour of a new dragula script in 4.0

Documentation des fonctions membres

◆ sortable()

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

Method to load the Sortable script and make table sortable

Paramètres
string$tableIdDOM id of the table
string$formIdDOM id of the form
string$sortDirSort direction
string$saveOrderingUrlSave ordering url, ajax-load after an item dropped
boolean$proceedSaveOrderButtonSet whether a save order button is displayed
boolean$nestedListSet whether the list is a nested list
Renvoie
void
Depuis
3.0
Obsolète:
5.0 In Joomla 4 call JHtml::_('draggablelist.draggable') and add a class of js-draggable to the tbody element of the table

Références $formId, $saveOrderingUrl, et HTMLHelper\_().


La documentation de cette classe a été générée à partir du fichier suivant :