@@ -106,15 +106,50 @@ Reference List
106
106
107
107
* - Category
108
108
- Content
109
+ * - :ref: `effects <frontend/registries/effects >`
110
+ - implementation for all available effects
111
+ * - :ref: `formatters <frontend/registries/formatters >`
112
+ - utility functions to format values (mostly used for field values)
109
113
* - :ref: `main_components <frontend/registries/main_components >`
110
114
- top level components
115
+ * - :ref: `parsers <frontend/registries/parsers >`
116
+ - utility functions to parse values (mostly used for field values)
111
117
* - :ref: `services <frontend/registries/services >`
112
118
- all services that should be activated
113
119
* - :ref: `systray <frontend/registries/systray >`
114
120
- components displayed in the systray zone in the navbar
115
121
* - :ref: `user_menuitems <frontend/registries/usermenu >`
116
122
- menu items displayed in the user menu (top right of navbar)
117
123
124
+ .. _frontend/registries/effects :
125
+
126
+ Effect registry
127
+ ---------------
128
+
129
+ The `effects ` registry contains the implementations of all available effects.
130
+ See the section on the :ref: `effect service <frontend/services/effect_registry >`
131
+ for more details.
132
+
133
+ .. _frontend/registries/formatters :
134
+
135
+ Formatter registry
136
+ ------------------
137
+
138
+ The `formatters ` registry contains functions to format values. Each formatter
139
+ has the following API:
140
+
141
+ .. js :function :: format (value[, options])
142
+
143
+ :param value: a value of a specific type, or `false ` if no value is given
144
+ :type value: T | false
145
+ :param Object options: various options
146
+ :returns: string
147
+
148
+ Formats a value and returns a string
149
+
150
+ .. seealso ::
151
+ - :ref: `Parsers registry <frontend/registries/parsers >`
152
+
118
153
.. _frontend/registries/main_components :
119
154
120
155
Main components registry
@@ -143,6 +178,28 @@ this:
143
178
Component: LoadingIndicator,
144
179
});
145
180
181
+ .. _frontend/registries/parsers :
182
+
183
+ Parser registry
184
+ ---------------
185
+
186
+ The `parsers ` registry contains functions to parse values. Each parser
187
+ has the following API:
188
+
189
+ .. js :function :: parse (value[, options])
190
+ :noindex:
191
+
192
+ :param value: a string representing a value
193
+ :type value: string
194
+ :param Object options: various options (parser specific)
195
+ :returns: T a valid value
196
+
197
+ Parses a string and returns a value. If the string does not represent a valid
198
+ value, parsers can fail and throw errors.
199
+
200
+ .. seealso ::
201
+ - :ref: `Formatters registry <frontend/registries/formatters >`
202
+
146
203
.. _frontend/registries/services :
147
204
148
205
Service registry
@@ -245,9 +302,3 @@ Example:
245
302
hide: (Math .random () < 0.5 ),
246
303
};
247
304
}
248
-
249
- Effect registry
250
- -------------- -
251
-
252
- Contains the implementations of all available effects . See the section on the
253
- : ref: ` effect service <frontend/services/effect_registry>` for more details.
0 commit comments