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/001-gettingStarted.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,14 +198,18 @@ export default {
198
198
name: 'id',
199
199
type: AdminForthDataTypes.STRING,
200
200
label: 'Identifier', // if you wish you can redefine label, defaulted to uppercased name
201
-
showIn: ['filter', 'show'], // show column in filter and in show page
201
+
showIn: { // show column in filter and in show page
202
+
list: false,
203
+
edit: false,
204
+
create: false,
205
+
},
202
206
primaryKey: true,
203
207
fillOnCreate: ({ initialRecord, adminUser }) =>Math.random().toString(36).substring(7), // called during creation to generate content of field, initialRecord is values user entered, adminUser object of user who creates record
204
208
},
205
209
{
206
210
name: 'title',
207
211
required: true,
208
-
showIn: ['list', 'create', 'edit', 'filter', 'show'], // all available options
212
+
showIn: { all: false }, // all available options
209
213
type: AdminForthDataTypes.STRING,
210
214
maxLength: 255, // you can set max length for string fields
211
215
minLength: 3, // you can set min length for string fields
0 commit comments