Skip to content

Commit 485cce7

Browse files
author
LFRW2K\lecmil2
committed
[FIX] Docx
1 parent 15e43ff commit 485cce7

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

packages/docs/docs/advanced-customization/custom-templates.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,24 @@ render(
283283
);
284284
```
285285

286-
You also can provide your own template to a uiSchema by specifying a `ui:ArrayFieldDescriptionTemplate` property with your Component or a string value from the `Registry`.
286+
You also can provide your own template to a uiSchema by specifying a `ui:ArrayFieldDescriptionTemplate` property with your Component :
287+
288+
```tsx
289+
import { UiSchema } from '@rjsf/utils';
290+
import ArrayFieldDescriptionTemplate from './ArrayFieldDescriptionTemplate';
291+
292+
const uiSchema: UiSchema = {
293+
'ui:ArrayFieldDescriptionTemplate': ArrayFieldDescriptionTemplate,
294+
};
295+
```
296+
297+
or a string value from the `Registry` :
287298

288299
```tsx
289300
import { UiSchema } from '@rjsf/utils';
290301

291302
const uiSchema: UiSchema = {
292-
'ui:ArrayFieldTitleTemplate': ArrayFieldTitleTemplate,
303+
'ui:ArrayFieldDescriptionTemplate': 'CustomArrayFieldDescriptionTemplate',
293304
};
294305
```
295306

@@ -641,10 +652,10 @@ You also can provide your own field template to a uiSchema by specifying a `ui:F
641652

642653
```tsx
643654
import { UiSchema } from '@rjsf/utils';
644-
import FieldTemplate from './FieldTemplate';
655+
import CustomFieldTemplate from './CustomFieldTemplate';
645656

646657
const uiSchema: UiSchema = {
647-
'ui:FieldTemplate': FieldTemplate,
658+
'ui:FieldTemplate': CustomFieldTemplate,
648659
};
649660
```
650661

0 commit comments

Comments
 (0)