AdminForthResourceColumnInputCommon
Column describes one field in the table or collection in database.
Extended by
Properties
allowMinMaxQuery?
optional
allowMinMaxQuery: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.
backendOnly?
optional
backendOnly:boolean
if true field will !not be passed to UI under no circumstances, but will be presented in hooks
components?
optional
components:AdminForthFieldComponents
Custom components which will be used to render this field in the admin panel.
editReadonly?
optional
editReadonly:boolean
Whether AdminForth will allow to edit this field in editing mode.
editingNote?
optional
editingNote:string
|object
Whether AdminForth will show editing note near the field in edit/create form.
enforceLowerCase?
optional
enforceLowerCase:boolean
Will automatically convert any capital letters to lowercase in input during editing
enum?
optional
enum:AdminForthColumnEnumItem
[]
Enum of possible values for this field.
extra?
optional
extra:object
An optional configuration object for extra settings.
jsonCollapsedLevel?
optional
jsonCollapsedLevel:number
How many levels of JSON should be collapsed.
0
means - root level will be already collapsed e.g. {a:1}
will show {...}
where '...'
is clickable
1
means - root level will be shown, but next sub-level will be collapsed e.g. {a: {b: 1}}
will show {a: ...}
where '...'
is clickable
Default is 1.
fillOnCreate?
optional
fillOnCreate:FillOnCreateFunction
Called on the backend when the record is saved to a database. Value returned by fillOnCreate
will be saved to the database.
filterOptions?
optional
filterOptions:object
debounceTimeMs?
optional
debounceTimeMs:number
Decrease number of requests by adding debounce time to filter requests.
multiselect?
optional
multiselect:boolean
Boolean value that determines what select input type to display on filter page.
substringSearch?
optional
substringSearch:boolean
If false - will force EQ operator for filter instead of ILIKE.
foreignResource?
optional
foreignResource:AdminForthForeignResourceCommon
Foreign resource which has pk column with values same that written in this column.
inputPrefix?
optional
inputPrefix:string
Prefix and suffix for input field on create and edit pages.