You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/operate/customize/look-and-feel/override_components.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ If you're struggling, you can always [ask for help](../../../install/troubleshoo
45
45
46
46
## 2. Find or create the mapping file
47
47
48
-
In new InvenioRDM installations at v11 or above, a near-empty file named `mapping.js` is available at the following path in your `assets` folder:
48
+
In InvenioRDM v11 or above installations, a file named `mapping.js` is available at the following path in your `assets` folder:
49
49
50
50
```terminal
51
51
├── assets
@@ -55,7 +55,7 @@ In new InvenioRDM installations at v11 or above, a near-empty file named `mappin
55
55
| | | | ├── mapping.js
56
56
```
57
57
58
-
For existing installations, you will have to create it. It is a very simple file:
58
+
For installations prior to v11, you will have to create it. It is a very simple file:
59
59
60
60
```javascript
61
61
exportconstoverriddenComponents= {};
@@ -71,7 +71,7 @@ The override can be specified in one of three ways, depending on your use case a
71
71
- a 'dynamic' override of the props based on the form's state
72
72
- completely replacing a component with a custom one
73
73
74
-
### a. Statically override a component's props
74
+
### Statically override a component's props
75
75
76
76
You can use the `parametrize` function built into `react-overridable`, into which you need to pass the component you wish to override and an object containing your props.
77
77
These props will be 'merged' with the existing props, with yours taking precedence over existing ones of the same name.
0 commit comments