@genesislcap/foundation-layout 14.408.0 → 14.409.0

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.
Files changed (66) hide show
  1. package/README.md +12 -135
  2. package/package.json +15 -15
  3. package/docs/api/foundation-layout.componentfactory.md +0 -46
  4. package/docs/api/foundation-layout.custombutton.md +0 -21
  5. package/docs/api/foundation-layout.default_reload_buffer.md +0 -15
  6. package/docs/api/foundation-layout.foundationlayout.additem.md +0 -80
  7. package/docs/api/foundation-layout.foundationlayout.autosavekey.md +0 -13
  8. package/docs/api/foundation-layout.foundationlayout.class.md +0 -18
  9. package/docs/api/foundation-layout.foundationlayout.clearautosaveandreverttodefault.md +0 -25
  10. package/docs/api/foundation-layout.foundationlayout.custombuttons.md +0 -18
  11. package/docs/api/foundation-layout.foundationlayout.dimensionsconfig.md +0 -13
  12. package/docs/api/foundation-layout.foundationlayout.dragging.md +0 -13
  13. package/docs/api/foundation-layout.foundationlayout.getlayout.md +0 -23
  14. package/docs/api/foundation-layout.foundationlayout.hasfirstloaded.md +0 -20
  15. package/docs/api/foundation-layout.foundationlayout.layoutrequiredregistrations.md +0 -64
  16. package/docs/api/foundation-layout.foundationlayout.lifecycleupdatetoken.md +0 -18
  17. package/docs/api/foundation-layout.foundationlayout.loadlayout.md +0 -96
  18. package/docs/api/foundation-layout.foundationlayout.md +0 -400
  19. package/docs/api/foundation-layout.foundationlayout.missingitemplaceholder.md +0 -13
  20. package/docs/api/foundation-layout.foundationlayout.popoutconfig.md +0 -16
  21. package/docs/api/foundation-layout.foundationlayout.registereditems.md +0 -23
  22. package/docs/api/foundation-layout.foundationlayout.registeritem.md +0 -108
  23. package/docs/api/foundation-layout.foundationlayout.reloadbuffer.md +0 -13
  24. package/docs/api/foundation-layout.foundationlayout.removeitems.md +0 -76
  25. package/docs/api/foundation-layout.foundationlayout.tryactivatepopoutmode.md +0 -26
  26. package/docs/api/foundation-layout.foundationlayout.tryloadlayoutfromlocalstorage.md +0 -27
  27. package/docs/api/foundation-layout.foundationlayoutcomponents.md +0 -47
  28. package/docs/api/foundation-layout.foundationlayoutitem.closable.md +0 -13
  29. package/docs/api/foundation-layout.foundationlayoutitem.md +0 -126
  30. package/docs/api/foundation-layout.foundationlayoutitem.registration.md +0 -36
  31. package/docs/api/foundation-layout.foundationlayoutitem.size.md +0 -13
  32. package/docs/api/foundation-layout.foundationlayoutitem.title.md +0 -18
  33. package/docs/api/foundation-layout.foundationlayoutregion.md +0 -86
  34. package/docs/api/foundation-layout.foundationlayoutregion.size.md +0 -13
  35. package/docs/api/foundation-layout.foundationlayoutregion.type.md +0 -13
  36. package/docs/api/foundation-layout.getfactory.md +0 -56
  37. package/docs/api/foundation-layout.layout_icons.md +0 -34
  38. package/docs/api/foundation-layout.layout_popout_container_class.md +0 -16
  39. package/docs/api/foundation-layout.layout_popout_control_key.md +0 -16
  40. package/docs/api/foundation-layout.layoutcomponentwithstate.applystate.md +0 -52
  41. package/docs/api/foundation-layout.layoutcomponentwithstate.getcurrentstate.md +0 -17
  42. package/docs/api/foundation-layout.layoutcomponentwithstate.md +0 -105
  43. package/docs/api/foundation-layout.layoutemitevents.md +0 -20
  44. package/docs/api/foundation-layout.layoutpopoutconfig.md +0 -22
  45. package/docs/api/foundation-layout.layoutreceiveevents.md +0 -18
  46. package/docs/api/foundation-layout.layoutreceiveeventsdetail.md +0 -21
  47. package/docs/api/foundation-layout.layoutregiontype.md +0 -13
  48. package/docs/api/foundation-layout.layoutregistrationerror._constructor_.md +0 -48
  49. package/docs/api/foundation-layout.layoutregistrationerror.md +0 -48
  50. package/docs/api/foundation-layout.layoutstyles.md +0 -18
  51. package/docs/api/foundation-layout.layouttemplate.md +0 -18
  52. package/docs/api/foundation-layout.layoutusageerror._constructor_.md +0 -48
  53. package/docs/api/foundation-layout.layoutusageerror.md +0 -48
  54. package/docs/api/foundation-layout.md +0 -373
  55. package/docs/api/foundation-layout.placement.md +0 -25
  56. package/docs/api/foundation-layout.registeredelementconfig.closable.md +0 -11
  57. package/docs/api/foundation-layout.registeredelementconfig.md +0 -136
  58. package/docs/api/foundation-layout.registeredelementconfig.registration.md +0 -11
  59. package/docs/api/foundation-layout.registeredelementconfig.showmaximisebutton.md +0 -11
  60. package/docs/api/foundation-layout.registeredelementconfig.size.md +0 -11
  61. package/docs/api/foundation-layout.registeredelementconfig.title.md +0 -11
  62. package/docs/api/foundation-layout.registerfactory.md +0 -94
  63. package/docs/api/foundation-layout.serialisedlayout.md +0 -26
  64. package/docs/api/foundation-layout.unregisterfactory.md +0 -63
  65. package/docs/api/index.md +0 -30
  66. package/docs/api-report.md.api.md +0 -278
@@ -1,373 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-layout](./foundation-layout.md)
4
-
5
- ## foundation-layout package
6
-
7
- ## Classes
8
-
9
- <table><thead><tr><th>
10
-
11
- Class
12
-
13
-
14
- </th><th>
15
-
16
- Description
17
-
18
-
19
- </th></tr></thead>
20
- <tbody><tr><td>
21
-
22
- [FoundationLayout](./foundation-layout.foundationlayout.md)
23
-
24
-
25
- </td><td>
26
-
27
- Top level web component which is used to initialise a custom layout
28
-
29
-
30
- </td></tr>
31
- <tr><td>
32
-
33
- [FoundationLayoutItem](./foundation-layout.foundationlayoutitem.md)
34
-
35
-
36
- </td><td>
37
-
38
- `FoundationLayoutItem` is a custom element that represents an item in the layout.
39
-
40
-
41
- </td></tr>
42
- <tr><td>
43
-
44
- [FoundationLayoutRegion](./foundation-layout.foundationlayoutregion.md)
45
-
46
-
47
- </td><td>
48
-
49
- `FoundationLayoutRegion` is a custom element that represents a region in the layout.
50
-
51
-
52
- </td></tr>
53
- <tr><td>
54
-
55
- [LayoutRegistrationError](./foundation-layout.layoutregistrationerror.md)
56
-
57
-
58
- </td><td>
59
-
60
-
61
-
62
- </td></tr>
63
- <tr><td>
64
-
65
- [LayoutUsageError](./foundation-layout.layoutusageerror.md)
66
-
67
-
68
- </td><td>
69
-
70
-
71
-
72
- </td></tr>
73
- </tbody></table>
74
-
75
- ## Functions
76
-
77
- <table><thead><tr><th>
78
-
79
- Function
80
-
81
-
82
- </th><th>
83
-
84
- Description
85
-
86
-
87
- </th></tr></thead>
88
- <tbody><tr><td>
89
-
90
- [getFactory(key)](./foundation-layout.getfactory.md)
91
-
92
-
93
- </td><td>
94
-
95
- Retrieves a factory function by its key.
96
-
97
-
98
- </td></tr>
99
- <tr><td>
100
-
101
- [registerFactory(key, factory)](./foundation-layout.registerfactory.md)
102
-
103
-
104
- </td><td>
105
-
106
- Registers a factory function with a unique key. This allows framework components to be used in the declarative layout API without needing to pass function references through HTML attributes.
107
-
108
-
109
- </td></tr>
110
- <tr><td>
111
-
112
- [unregisterFactory(key)](./foundation-layout.unregisterfactory.md)
113
-
114
-
115
- </td><td>
116
-
117
- Removes a factory from the registry. This is useful for cleanup when a component is unmounted or no longer needed.
118
-
119
-
120
- </td></tr>
121
- </tbody></table>
122
-
123
- ## Interfaces
124
-
125
- <table><thead><tr><th>
126
-
127
- Interface
128
-
129
-
130
- </th><th>
131
-
132
- Description
133
-
134
-
135
- </th></tr></thead>
136
- <tbody><tr><td>
137
-
138
- [LayoutComponentWithState](./foundation-layout.layoutcomponentwithstate.md)
139
-
140
-
141
- </td><td>
142
-
143
- Interface to implement on an item which is a component of the layout and you wish to serialise state with. This is saved separately for each instance of the component, which allows you to restore multiple instances of the same component with different state.
144
-
145
-
146
- </td></tr>
147
- <tr><td>
148
-
149
- [RegisteredElementConfig](./foundation-layout.registeredelementconfig.md)
150
-
151
-
152
- </td><td>
153
-
154
- The parameters that can be set on a new item when being added by the [FoundationLayout.addItem()](./foundation-layout.foundationlayout.additem.md) API
155
-
156
-
157
- </td></tr>
158
- </tbody></table>
159
-
160
- ## Variables
161
-
162
- <table><thead><tr><th>
163
-
164
- Variable
165
-
166
-
167
- </th><th>
168
-
169
- Description
170
-
171
-
172
- </th></tr></thead>
173
- <tbody><tr><td>
174
-
175
- [DEFAULT\_RELOAD\_BUFFER](./foundation-layout.default_reload_buffer.md)
176
-
177
-
178
- </td><td>
179
-
180
- Default time in milliseconds for the layout to buffer calls to reloading the layout while the declarative API is loading.
181
-
182
- During the first load of the layout, a loading spinner will be shown.
183
-
184
-
185
- </td></tr>
186
- <tr><td>
187
-
188
- [foundationLayoutComponents](./foundation-layout.foundationlayoutcomponents.md)
189
-
190
-
191
- </td><td>
192
-
193
- Registration object to register the layout with your design system.
194
-
195
-
196
- </td></tr>
197
- <tr><td>
198
-
199
- [LAYOUT\_ICONS](./foundation-layout.layout_icons.md)
200
-
201
-
202
- </td><td>
203
-
204
- A collection of SVG icons in base64 format.
205
-
206
-
207
- </td></tr>
208
- <tr><td>
209
-
210
- [LAYOUT\_POPOUT\_CONTAINER\_CLASS](./foundation-layout.layout_popout_container_class.md)
211
-
212
-
213
- </td><td>
214
-
215
- **_(BETA)_** Put this classname on an element which is a DOM parent of the layout, and if the layout goes into popout mode then it will place itself as the only child for the popout container you set.
216
-
217
-
218
- </td></tr>
219
- <tr><td>
220
-
221
- [LAYOUT\_POPOUT\_CONTROL\_KEY](./foundation-layout.layout_popout_control_key.md)
222
-
223
-
224
- </td><td>
225
-
226
- **_(BETA)_** Key to be used for controlling popout behaviour
227
-
228
-
229
- </td></tr>
230
- <tr><td>
231
-
232
- [LayoutEmitEvents](./foundation-layout.layoutemitevents.md)
233
-
234
-
235
- </td><td>
236
-
237
- Defines events that the layout system emits
238
-
239
- 'firstLoaded' - emitted when the layout has finished loading the first time using the declarative API after [DEFAULT\_RELOAD\_BUFFER](./foundation-layout.default_reload_buffer.md) ms. <br/> 'itemAdded' - emitted when an item is added to the layout' <br/> 'itemRemoved' - emitted when an item is removed from the layout' <br/> 'itemResized' - emitted when the user drags the divider to resize elements
240
-
241
-
242
- </td></tr>
243
- <tr><td>
244
-
245
- [LayoutReceiveEvents](./foundation-layout.layoutreceiveevents.md)
246
-
247
-
248
- </td><td>
249
-
250
- Defines events that the layout system listens for
251
-
252
- 'changeTitle' - emit this from a contained item to update the title of the window that contains it. 'autosave' - emit this from a contained item to hint to the layout system that it should autosave the layout. A contained item should do this if it has just changed some state it would like to persist. See [LayoutComponentWithState](./foundation-layout.layoutcomponentwithstate.md)<!-- -->.
253
-
254
-
255
- </td></tr>
256
- <tr><td>
257
-
258
- [layoutStyles](./foundation-layout.layoutstyles.md)
259
-
260
-
261
- </td><td>
262
-
263
- `ElementStyles` which defines the css for [FoundationLayout](./foundation-layout.foundationlayout.md)<!-- -->.
264
-
265
-
266
- </td></tr>
267
- <tr><td>
268
-
269
- [layoutTemplate](./foundation-layout.layouttemplate.md)
270
-
271
-
272
- </td><td>
273
-
274
- `ViewTemplate` which defines the html for [FoundationLayout](./foundation-layout.foundationlayout.md)<!-- -->.
275
-
276
-
277
- </td></tr>
278
- </tbody></table>
279
-
280
- ## Type Aliases
281
-
282
- <table><thead><tr><th>
283
-
284
- Type Alias
285
-
286
-
287
- </th><th>
288
-
289
- Description
290
-
291
-
292
- </th></tr></thead>
293
- <tbody><tr><td>
294
-
295
- [ComponentFactory](./foundation-layout.componentfactory.md)
296
-
297
-
298
- </td><td>
299
-
300
- Factory function for creating component instances in the layout.
301
-
302
-
303
- </td></tr>
304
- <tr><td>
305
-
306
- [CustomButton](./foundation-layout.custombutton.md)
307
-
308
-
309
- </td><td>
310
-
311
- Definition of a custom button which will be added to all layout items.
312
-
313
-
314
- </td></tr>
315
- <tr><td>
316
-
317
- [LayoutPopoutConfig](./foundation-layout.layoutpopoutconfig.md)
318
-
319
-
320
- </td><td>
321
-
322
- **_(BETA)_**
323
-
324
-
325
- </td></tr>
326
- <tr><td>
327
-
328
- [LayoutReceiveEventsDetail](./foundation-layout.layoutreceiveeventsdetail.md)
329
-
330
-
331
- </td><td>
332
-
333
- Defines the shape of the detail that the layout listens works with for events it listens on
334
-
335
- 'changeTitle' - `title` is the string you want to set. For `mode`<!-- -->: `replace` will set the title to be `title`<!-- -->, `suffix` will append `title` to the end of the existing title. 'autosave' - no other parameters.
336
-
337
-
338
- </td></tr>
339
- <tr><td>
340
-
341
- [LayoutRegionType](./foundation-layout.layoutregiontype.md)
342
-
343
-
344
- </td><td>
345
-
346
- Union type describing the three different types of region splits. Set on the `type` attribute on [FoundationLayoutRegion](./foundation-layout.foundationlayoutregion.md)<!-- -->.
347
-
348
-
349
- </td></tr>
350
- <tr><td>
351
-
352
- [Placement](./foundation-layout.placement.md)
353
-
354
-
355
- </td><td>
356
-
357
- Where to and how to add the new item(s) into the layout when using the [FoundationLayout.addItem()](./foundation-layout.foundationlayout.additem.md) API.
358
-
359
-
360
- </td></tr>
361
- <tr><td>
362
-
363
- [SerialisedLayout](./foundation-layout.serialisedlayout.md)
364
-
365
-
366
- </td><td>
367
-
368
- Versioned layout config objects. `v` is the version and `c` contains the layout config.
369
-
370
-
371
- </td></tr>
372
- </tbody></table>
373
-
@@ -1,25 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-layout](./foundation-layout.md) &gt; [Placement](./foundation-layout.placement.md)
4
-
5
- ## Placement type
6
-
7
- Where to and how to add the new item(s) into the layout when using the [FoundationLayout.addItem()](./foundation-layout.foundationlayout.additem.md) API.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export type Placement = {
13
- area: 'top' | 'left' | 'bottom' | 'right';
14
- multiple?: {
15
- type: LayoutRegionType;
16
- size?: string;
17
- };
18
- };
19
- ```
20
- **References:** [LayoutRegionType](./foundation-layout.layoutregiontype.md)
21
-
22
- ## Remarks
23
-
24
- `area` dictates what part of the layout the new item(s) will be added to. `multiple` is optional and is defaulted to `type=horizontal` and `size=50%` if not defined. `multiple` config only affects the placement if multiple items are specified to be added. `multiple.type` sets the group type of the new items, whether they are horizontal, vertical, or in tabs. `multiple.size` - optional string describing the size of the new item (see the written documentation for more info). `multiple.size` specifies the size of the new group to be added and then the `size` config of the new items are the sizes relative to this new multiple group. If you only specify one new item then the `size` of that will be used as the size and will override `multiple.size`<!-- -->.
25
-
@@ -1,11 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-layout](./foundation-layout.md) &gt; [RegisteredElementConfig](./foundation-layout.registeredelementconfig.md) &gt; [closable](./foundation-layout.registeredelementconfig.closable.md)
4
-
5
- ## RegisteredElementConfig.closable property
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- closable?: boolean;
11
- ```
@@ -1,136 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-layout](./foundation-layout.md) &gt; [RegisteredElementConfig](./foundation-layout.registeredelementconfig.md)
4
-
5
- ## RegisteredElementConfig interface
6
-
7
- The parameters that can be set on a new item when being added by the [FoundationLayout.addItem()](./foundation-layout.foundationlayout.additem.md) API
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export interface RegisteredElementConfig
13
- ```
14
-
15
- ## Remarks
16
-
17
- `elements` - array of Elements that are the content of the new item `title` - optional string which is used as the new title of the tab (defaults to be the registered name) `closable` - optional boolean which allows the item to be closed with the X button if set and true `size` - optional string describing the size of the new item (see the written documentation for more info) `registration` - optional string configuring the registration ID of the new item (defaults to sequential IDs)
18
-
19
- ## Properties
20
-
21
- <table><thead><tr><th>
22
-
23
- Property
24
-
25
-
26
- </th><th>
27
-
28
- Modifiers
29
-
30
-
31
- </th><th>
32
-
33
- Type
34
-
35
-
36
- </th><th>
37
-
38
- Description
39
-
40
-
41
- </th></tr></thead>
42
- <tbody><tr><td>
43
-
44
- [closable?](./foundation-layout.registeredelementconfig.closable.md)
45
-
46
-
47
- </td><td>
48
-
49
-
50
- </td><td>
51
-
52
- boolean
53
-
54
-
55
- </td><td>
56
-
57
- _(Optional)_
58
-
59
-
60
- </td></tr>
61
- <tr><td>
62
-
63
- [registration](./foundation-layout.registeredelementconfig.registration.md)
64
-
65
-
66
- </td><td>
67
-
68
-
69
- </td><td>
70
-
71
- string
72
-
73
-
74
- </td><td>
75
-
76
-
77
- </td></tr>
78
- <tr><td>
79
-
80
- [showMaximiseButton?](./foundation-layout.registeredelementconfig.showmaximisebutton.md)
81
-
82
-
83
- </td><td>
84
-
85
-
86
- </td><td>
87
-
88
- boolean
89
-
90
-
91
- </td><td>
92
-
93
- _(Optional)_
94
-
95
-
96
- </td></tr>
97
- <tr><td>
98
-
99
- [size?](./foundation-layout.registeredelementconfig.size.md)
100
-
101
-
102
- </td><td>
103
-
104
-
105
- </td><td>
106
-
107
- string
108
-
109
-
110
- </td><td>
111
-
112
- _(Optional)_
113
-
114
-
115
- </td></tr>
116
- <tr><td>
117
-
118
- [title?](./foundation-layout.registeredelementconfig.title.md)
119
-
120
-
121
- </td><td>
122
-
123
-
124
- </td><td>
125
-
126
- string
127
-
128
-
129
- </td><td>
130
-
131
- _(Optional)_
132
-
133
-
134
- </td></tr>
135
- </tbody></table>
136
-
@@ -1,11 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-layout](./foundation-layout.md) &gt; [RegisteredElementConfig](./foundation-layout.registeredelementconfig.md) &gt; [registration](./foundation-layout.registeredelementconfig.registration.md)
4
-
5
- ## RegisteredElementConfig.registration property
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- registration: string;
11
- ```
@@ -1,11 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-layout](./foundation-layout.md) &gt; [RegisteredElementConfig](./foundation-layout.registeredelementconfig.md) &gt; [showMaximiseButton](./foundation-layout.registeredelementconfig.showmaximisebutton.md)
4
-
5
- ## RegisteredElementConfig.showMaximiseButton property
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- showMaximiseButton?: boolean;
11
- ```
@@ -1,11 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-layout](./foundation-layout.md) &gt; [RegisteredElementConfig](./foundation-layout.registeredelementconfig.md) &gt; [size](./foundation-layout.registeredelementconfig.size.md)
4
-
5
- ## RegisteredElementConfig.size property
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- size?: string;
11
- ```
@@ -1,11 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-layout](./foundation-layout.md) &gt; [RegisteredElementConfig](./foundation-layout.registeredelementconfig.md) &gt; [title](./foundation-layout.registeredelementconfig.title.md)
4
-
5
- ## RegisteredElementConfig.title property
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- title?: string;
11
- ```
@@ -1,94 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-layout](./foundation-layout.md) &gt; [registerFactory](./foundation-layout.registerfactory.md)
4
-
5
- ## registerFactory() function
6
-
7
- Registers a factory function with a unique key. This allows framework components to be used in the declarative layout API without needing to pass function references through HTML attributes.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export declare function registerFactory(key: string, factory: ComponentFactory): void;
13
- ```
14
-
15
- ## Parameters
16
-
17
- <table><thead><tr><th>
18
-
19
- Parameter
20
-
21
-
22
- </th><th>
23
-
24
- Type
25
-
26
-
27
- </th><th>
28
-
29
- Description
30
-
31
-
32
- </th></tr></thead>
33
- <tbody><tr><td>
34
-
35
- key
36
-
37
-
38
- </td><td>
39
-
40
- string
41
-
42
-
43
- </td><td>
44
-
45
- Unique identifier for the factory. Should be descriptive and unique across the application.
46
-
47
-
48
- </td></tr>
49
- <tr><td>
50
-
51
- factory
52
-
53
-
54
- </td><td>
55
-
56
- [ComponentFactory](./foundation-layout.componentfactory.md)
57
-
58
-
59
- </td><td>
60
-
61
- The factory function that creates the component.
62
-
63
-
64
- </td></tr>
65
- </tbody></table>
66
-
67
- **Returns:**
68
-
69
- void
70
-
71
- ## Exceptions
72
-
73
- {<!-- -->Error<!-- -->} If a factory with the same key is already registered.
74
-
75
- ## Example
76
-
77
-
78
- ```typescript
79
- // React example
80
- import { registerFactory } from '@genesislcap/foundation-layout';
81
- import { reactFactory } from './utils/react-layout-factory';
82
- import { MyComponent } from './components/MyComponent';
83
-
84
- registerFactory('my-component', reactFactory(MyComponent, { someProp: 'value' }));
85
- ```
86
- Then in your JSX:
87
-
88
- ```tsx
89
- <rapid-layout-item
90
- registration="my-item"
91
- title="My Component"
92
- />
93
- ```
94
-