Class type Goog.Ui.tableSorter
class type tableSorter = object..end
Inherits
method canDecorate :
'a. (#Dom_html.element as 'a) Js.t -> bool Js.t Js.meth
method enterDocument : unit Js.meth
method getDefaultSortFunction :
(Js.js_string Js.t -> Js.js_string Js.t -> int) Js.callback Js.meth
Returns The default sort function to be used by
all columns.
method getSortColumn : int Js.meth
Returns The current sort column of the table, or -1 if none.
method getSortFunction :
(Js.js_string Js.t -> Js.js_string Js.t -> int) Js.callback Js.meth
Gets the sort function to be used by the given column. Returns the default
sort function if no sort function is explicitly set for this column.
Returns The sort function used by the column.
method isSortReversed : bool Js.t Js.meth
Returns Whether the last sort was in reverse.
method setDefaultSortFunction :
(Js.js_string Js.t -> Js.js_string Js.t -> int) Js.callback ->
unit Js.meth
Sets the default sort function to be used by all columns. If not set explicitly, this defaults to numeric sorting.
method setSortFunction :
int ->
(Js.js_string Js.t -> Js.js_string Js.t -> int) Js.callback ->
unit Js.meth
Set the sort function for the given column, overriding the default sort function.
method sort : int -> bool Js.t Js.opt -> unit Js.meth
Sort the table contents by the values in the given column.
