svelte-common 4.8.0 → 4.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,6 +28,8 @@ or the [live example](https://arlac77.github.io/components/svelte-common/example
|
|
|
28
28
|
|
|
29
29
|
* [initializeServiceWorker](#initializeserviceworker)
|
|
30
30
|
* [Parameters](#parameters)
|
|
31
|
+
* [toggleOrdeBy](#toggleordeby)
|
|
32
|
+
* [Parameters](#parameters-1)
|
|
31
33
|
|
|
32
34
|
## initializeServiceWorker
|
|
33
35
|
|
|
@@ -40,6 +42,16 @@ Create a store holding a service worker
|
|
|
40
42
|
|
|
41
43
|
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** store holding the service worker
|
|
42
44
|
|
|
45
|
+
## toggleOrdeBy
|
|
46
|
+
|
|
47
|
+
Deliver next value in the order by cycle.
|
|
48
|
+
|
|
49
|
+
### Parameters
|
|
50
|
+
|
|
51
|
+
* `orderBy` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
52
|
+
|
|
53
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** new order either SORT_NONE, SORT_ASCENDING or SORT_DESCENDING
|
|
54
|
+
|
|
43
55
|
# install
|
|
44
56
|
|
|
45
57
|
With [npm](http://npmjs.org) do:
|