@nice-digital/global-nav 7.0.946-GN-76-DropIE11AndUpd → 7.0.957
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 +8 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
package/README.md
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
- [Header props](#header-props)
|
|
41
41
|
- [Header.service](#headerservice)
|
|
42
42
|
- [Header.skipLinkId](#headerskiplinkid)
|
|
43
|
+
- [Header.renderSearchOnly](#headerrendersearchonly)
|
|
43
44
|
- [Header.onNavigating](#headeronnavigating)
|
|
44
45
|
- [Header.onResize](#headeronresize)
|
|
45
46
|
- [Header.onDropdownOpen](#headerondropdownopen)
|
|
@@ -328,6 +329,13 @@ See [services.json](src/services.json) for a list of the available service ident
|
|
|
328
329
|
The identifier of the skip link target.
|
|
329
330
|
An empty div with this id will be created at the end of the header, if it doesn't already exist on the page.
|
|
330
331
|
|
|
332
|
+
###### Header.renderSearchOnly
|
|
333
|
+
|
|
334
|
+
- Type: `boolean`
|
|
335
|
+
- Default: `false`
|
|
336
|
+
|
|
337
|
+
Optionally render the header with search box only to aid with debugging by reducing noise in the rendered output.
|
|
338
|
+
|
|
331
339
|
###### Header.onNavigating
|
|
332
340
|
|
|
333
341
|
- Type: `String | Function`
|
|
@@ -433,7 +441,6 @@ var global_nav_config = {
|
|
|
433
441
|
},
|
|
434
442
|
};
|
|
435
443
|
```
|
|
436
|
-
|
|
437
444
|
###### Header.additionalSubMenuItems
|
|
438
445
|
|
|
439
446
|
- Type: `null | Array`
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ declare module "@nice-digital/global-nav" {
|
|
|
75
75
|
onDropdownClose?: string | (() => void);
|
|
76
76
|
onNavigating?: string | OnNavigatingCallback;
|
|
77
77
|
additionalSubMenuItems?: Array<AdditionalSubMenuItem>;
|
|
78
|
+
renderSearchOnly?: boolean;
|
|
78
79
|
};
|
|
79
80
|
|
|
80
81
|
export type FooterProps = {
|