Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
wiki:colmodel_options [2014/02/20 09:19]
tony
wiki:colmodel_options [2014/02/20 09:20]
tony
Line 43: Line 43:
 |searchoptions|array|Defines the search options used searching [[:​wiki:​search_config | Search Configuration]]|empty| |searchoptions|array|Defines the search options used searching [[:​wiki:​search_config | Search Configuration]]|empty|
 |sortable|boolean|Defines is this can be sorted.|true| |sortable|boolean|Defines is this can be sorted.|true|
-|sortfunc|function|Custom function to make custom sorting when datatype is local. Three parameters a, b and direction are passed. The //a// and //b// parameters are values to be compared direction is numeric 1 and -1 for ascending and descending order. The function should return 1, -1 and 0|null| ​+|sortfunc|function|Custom function to make custom sorting when datatype is local. Three parameters a, b and direction are passed. The //a// and //b// parameters are values to be compared direction is numeric 1 and -1 for ascending and descending order. The function should return 1, -1 or 0|null| ​
 |sorttype|mixed|Used when datatype is local. Defines the type of the column for appropriate sorting.Possible values: \\  int/integer - for sorting integer \\ float/​number/​currency - for sorting decimal numbers \\ date - for sorting date \\ text - for text sorting \\ function - defines a custom function for sorting. To this function we pass the value to be sorted and it should return a value too. \\ See [[wiki:​retrieving_data#​array_data | Array Data]] |text| |sorttype|mixed|Used when datatype is local. Defines the type of the column for appropriate sorting.Possible values: \\  int/integer - for sorting integer \\ float/​number/​currency - for sorting decimal numbers \\ date - for sorting date \\ text - for text sorting \\ function - defines a custom function for sorting. To this function we pass the value to be sorted and it should return a value too. \\ See [[wiki:​retrieving_data#​array_data | Array Data]] |text|
 |stype|string| Determines the type of the element when searching. See [[:​wiki:​search_config | Search Configuration]]|text| |stype|string| Determines the type of the element when searching. See [[:​wiki:​search_config | Search Configuration]]|text|

QR Code
QR Code wiki:colmodel_options (generated for current page)