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: adminforth/documentation/docs/tutorial/03-Customization/02-customFieldRendering.md
+74-1Lines changed: 74 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ Here is how it looks:
62
62
In very similar way you can render how cell is rendered in `'edit'` and `'create'` view.
63
63
You can use it for creating custom editors for the fields. Check [component specs](/docs/api/types/Common/interfaces/AdminForthFieldComponents#create) to understand which props are passed to the component
64
64
65
-
## Parametrizing the custom components
65
+
## Parametrize the custom components
66
66
67
67
Sometimes you need to render same component with different parameters.
68
68
You can use [full component declaration](/docs/api/types/Common/interfaces/AdminForthComponentDeclarationFull)
@@ -178,6 +178,79 @@ And simply do `npm install` for the package you need:
178
178
npm i <some package> -D
179
179
```
180
180
181
+
## Editing values component
182
+
183
+
In same way as we define `show` and list component, we can create component for edit/create page.
184
+
Let's create custom dropdown for `country` field which will show emoji flags of the countries.
0 commit comments