AdminForthResourceColumn
Extends
Omit<AdminForthResourceColumnCommon,"showIn"|"backendOnly">
Properties
_underlineType?
optional_underlineType?:string
Internal type which indicates original type of column in database.
Inherited from
AdminForthResourceColumnCommon._underlineType
allowMinMaxQuery?
optionalallowMinMaxQuery?:boolean
Allow AdminForth to execute SELECT min(column) and SELECT max(column) queries to get min and max values for this column. This would improve UX of filters by adding sliders for numeric columns.
NOTE: By default is option is false to prevent performance issues on large tables.
If you are going to set it to true, make sure you have a one-item index on this column (one index for each column which has it) or ensure your table will not have a large number of records.
Inherited from
AdminForthResourceColumnInputCommon.allowMinMaxQuery
allowModifyWhenNotShowInCreate?
optionalallowModifyWhenNotShowInCreate?:boolean
Allows setting this column on Create requests even when showIn.create resolves to false.
Default is false.
This is useful for custom create components which update hidden/technical fields via
update:recordFieldValue.
Inherited from
AdminForthResourceColumnInputCommon.allowModifyWhenNotShowInCreate
allowModifyWhenNotShowInEdit?
optionalallowModifyWhenNotShowInEdit?:boolean
Allows updating this column on Edit requests even when showIn.edit resolves to false.
Default is false.
This is useful for custom edit components which update hidden/technical fields via
update:recordFieldValue.
Inherited from
AdminForthResourceColumnInputCommon.allowModifyWhenNotShowInEdit
backendOnly?
optionalbackendOnly?:BackendOnlyInput
components?
optionalcomponents?:AdminForthFieldComponents
Custom components which will be used to render this field in the admin panel.
Inherited from
AdminForthResourceColumnInputCommon.components
editingNote?
optionaleditingNote?:object
Whether AdminForth will show editing note near the field in edit/create form.
create?
optionalcreate?:string
edit?
optionaledit?:string
Inherited from
AdminForthResourceColumnCommon.editingNote
editReadonly?
optionaleditReadonly?:boolean
Whether AdminForth will allow to edit this field in editing mode.
Inherited from
AdminForthResourceColumnInputCommon.editReadonly
enforceLowerCase?
optionalenforceLowerCase?:boolean
Will automatically convert any capital letters to lowercase in input during editing
Inherited from
AdminForthResourceColumnInputCommon.enforceLowerCase
enum?
optionalenum?:AdminForthColumnEnumItem[]
Enum of possible values for this field.
Inherited from
AdminForthResourceColumnInputCommon.enum
extra?
optionalextra?:object
An optional configuration object for extra settings.
jsonCollapsedLevel?
optionaljsonCollapsedLevel?:number
How many levels of JSON are open on the show page and in the popover of a list cell, deeper nodes start folded.
0 means - the root is folded into one line, a click opens it
1 means - the keys of the root are shown, their values are folded into one line each
A node which fits in one line (up to 60 characters) is always shown whole.
Default is 1.
Inherited from
AdminForthResourceColumnInputCommon.extra
fillOnCreate?
optionalfillOnCreate?:FillOnCreateFunction
Called on the backend when the record is saved to a database. Value returned by fillOnCreate will be saved to the database.
Inherited from
AdminForthResourceColumnInputCommon.fillOnCreate