- toggle(sortDirectionCycler: SortDirectionCycler): (<T>(property: T, clear?: boolean) => ((sort: Sort<T>, direction?: undefined | SortDirection) => void))
-
Returns (<T>(property: T, clear?: boolean) => ((sort: Sort<T>, direction?: undefined | SortDirection) => void))
-
- <T>(property: T, clear?: boolean): ((sort: Sort<T>, direction?: undefined | SortDirection) => void)
-
Parameters
-
property: T
-
Optional clear: boolean
Returns ((sort: Sort<T>, direction?: undefined | SortDirection) => void)
Creates a Function that toggles properties of a Sort.
Example
Todo
Figure out if appending is the preferred action for multi sort
Returns
the toggle Function