class JHtmlSearchtools

Searchtools elements.

Methods

static  void
main()

Load the main Searchtools libraries

static  void
form( mixed $selector = '.js-stools-form', array $options = array())

Load searchtools for a specific form

static  string
sort( string $title, string $order, string $direction = 'asc', mixed $selected, string $task = null, string $new_direction = 'asc', string $tip = '', string $icon = null, string $formName = 'adminForm')

Method to sort a column in a grid

Details

static void main()

Load the main Searchtools libraries

Return Value

void

static void form( mixed $selector = '.js-stools-form', array $options = array())

Load searchtools for a specific form

Parameters

mixed $selector Is debugging mode on? [optional]
array $options Optional array of parameters for search tools

Return Value

void

static string sort( string $title, string $order, string $direction = 'asc', mixed $selected, string $task = null, string $new_direction = 'asc', string $tip = '', string $icon = null, string $formName = 'adminForm')

Method to sort a column in a grid

Parameters

string $title The link title
string $order The order field for the column
string $direction The current direction
mixed $selected The selected ordering
string $task An optional task override
string $new_direction An optional direction for the new column
string $tip An optional text shown as tooltip title instead of $title
string $icon Icon to show
string $formName Name of the form to submit

Return Value

string