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
resourceId: 'aparts', // resourceId is defaulted to table name but you can redefine it like this e.g.
209
+
//diff-add
209
210
// in case of same table names from different data sources
210
211
label: 'Apartments', // label is defaulted to table name but you can change it
211
212
//diff-add
212
213
recordLabel: (r) =>`🏡 ${r.title}`,
213
214
columns: [
214
215
{
215
216
name: 'id',
217
+
//diff-add
216
218
type: AdminForthDataTypes.STRING,
217
219
//diff-add
218
220
label: 'Identifier', // if you wish you can redefine label, defaulted to uppercased name
219
221
showIn: { // show column in filter and in show page
220
-
//diff-add
222
+
//diff-remove
223
+
all:true,
224
+
//diff-add
221
225
list: false,
222
226
//diff-add
223
227
edit: false,
224
228
//diff-add
225
229
create: false,
226
230
},
231
+
//diff-add
227
232
primaryKey: true,
228
233
//diff-add
229
234
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
230
235
},
231
236
{
232
-
name: 'title',
237
+
name: "title",
238
+
//diff-add
233
239
required: true,
234
-
showIn: { all: true }, // all available options
240
+
showIn: {
241
+
all:true, // all available options
242
+
},
243
+
//diff-add
235
244
type: AdminForthDataTypes.STRING,
236
245
//diff-add
237
246
maxLength: 255, // you can set max length for string fields
0 commit comments