packages/core/src/lib/config/field-config-property.interface.ts
        
Configuration for a FieldConfig property.
                            Properties | 
                    
                            
  | 
                    
                        [key: string]:        
                     | 
                
| 
                         wildcard for custom config values  | 
                
| action | 
                                        action:         
                                     | 
                                
                                            Type :         function
                                         | 
                                    
| Optional | 
| 
                                     Any other configuration properties  | 
                            
| autofocus | 
                                        autofocus:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     if true, the field will auto focus after view init  | 
                            
| changed | 
                                        changed:         
                                     | 
                                
                                            Type :         function
                                         | 
                                    
| Optional | 
| 
                                     If true, the field will be hidden in the list (but still be loaded)  | 
                            
| class | 
                                        class:         
                                     | 
                                
                                            Type :         string
                                         | 
                                    
| Optional | 
| 
                                     Class string  | 
                            
| columns | 
                                        columns:         
                                     | 
                                
                                            Type :         number
                                         | 
                                    
| Optional | 
| 
                                     Columns that the field should inhabit in the form grid.  | 
                            
| copy | 
                                        copy:         
                                     | 
                                
                                            Type :         function
                                         | 
                                    
| Optional | 
| 
                                     Custom copy transformation function.  | 
                            
| disabled | 
                                        disabled:     
                                     | 
                                
                                            Type :     boolean | any
                                         | 
                                    
| Optional | 
| 
                                     If true, the property will always be disabled (like readOnly but also on create)  | 
                            
| display | 
                                        display:         
                                     | 
                                
                                            Type :         function
                                         | 
                                    
| Optional | 
| 
                                     Custom edit transformation function. It is used before editing the value, e.g. in a form.  | 
                            
| filter | 
                                        filter:         
                                     | 
                                
                                            Type :         function
                                         | 
                                    
| Optional | 
| 
                                     Custom validation function. Its return value will be used for validation in a form.  | 
                            
| filterable | 
                                        filterable:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     if false, the field will not be filterable in a list  | 
                            
| filterOperator | 
                                        filterOperator:         
                                     | 
                                
                                            Type :         string
                                         | 
                                    
| Optional | 
| 
                                     The operator to use for filtering: exact, search, any etc.. see ec.sdk doc  | 
                            
| filterPopClass | 
                                        filterPopClass:         
                                     | 
                                
                                            Type :         string
                                         | 
                                    
| Optional | 
| 
                                     Defines the class for the filter pop, e.g. in list header. DEPRECATED  | 
                            
| form | 
                                        form:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     if false, the field will not be visible in a form  | 
                            
| group | 
                                        group:         
                                     | 
                                
                                            Type :         function
                                         | 
                                    
| Optional | 
| 
                                     Custom group transformation function. Its return value will be used for grouping.  | 
                            
| hidden | 
                                        hidden:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     Tells if the field should be hidden  | 
                            
| hideInColumnFilter | 
                                        hideInColumnFilter:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     If true, the field wont be shown in the list column filter.  | 
                            
| hideInForm | 
                                        hideInForm:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     If true, the field wont be shown in the form  | 
                            
| icon | 
                                        icon:         
                                     | 
                                
                                            Type :         string
                                         | 
                                    
| Optional | 
| 
                                     Icon name that should be associated with the field  | 
                            
| immutable | 
                                        immutable:     
                                     | 
                                
                                            Type :     boolean | any
                                         | 
                                    
| Optional | 
| 
                                     If true, the property will be ignored when saving (filtered out from object of emitted object)  | 
                            
| input | 
                                        input:     
                                     | 
                                
                                            Type :     Type<any>
                                         | 
                                    
| Optional | 
| 
                                     Custom Component for input (forms)  | 
                            
| inputView | 
                                        inputView:         
                                     | 
                                
                                            Type :         string
                                         | 
                                    
| Optional | 
| 
                                     The type of form input view. Defaults to type if not specified.  | 
                            
| label | 
                                        label:     
                                     | 
                                
                                            Type :     string | boolean
                                         | 
                                    
| Optional | 
| 
                                     Human readable field label. Defaults to property name. If false, the label is empty.  | 
                            
| list | 
                                        list:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     if false, the field will not be visible in a list  | 
                            
| maxItems | 
                                        maxItems:         
                                     | 
                                
                                            Type :         number
                                         | 
                                    
| Optional | 
| 
                                     Defines the maximum of visible item (for tags view or similar). Defaults to 10  | 
                            
| model | 
                                        model:         
                                     | 
                                
                                            Type :         string
                                         | 
                                    
| Optional | 
| 
                                     The model title of the entries/entry field  | 
                            
| output | 
                                        output:     
                                     | 
                                
                                            Type :     Type<any>
                                         | 
                                    
| Optional | 
| 
                                     Custom Component for output (e.g. list cell)  | 
                            
| placeholder | 
                                        placeholder:         
                                     | 
                                
                                            Type :         string
                                         | 
                                    
| Optional | 
| 
                                     Placeholder in inputs  | 
                            
| prefill | 
                                        prefill:         
                                     | 
                                
                                            Type :         any
                                         | 
                                    
| Optional | 
| 
                                     If a prefill value is set, it will be used at creation in a form.  | 
                            
| property | 
                                        property:         
                                     | 
                                
                                            Type :         string
                                         | 
                                    
| Optional | 
| 
                                     Property name  | 
                            
| queryFilter | 
                                        queryFilter:         
                                     | 
                                
                                            Type :         function
                                         | 
                                    
| Optional | 
| 
                                     Transforms a string value from the url query to a value that is used for filtering. e.g. transforms "A,B,C" to ['A','B','C']  | 
                            
| rawFilter | 
                                        rawFilter:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     If true, the field will be filtered raw (no filterOperator magic)  | 
                            
| readOnly | 
                                        readOnly:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     If true, the form input will be disabled when editing  | 
                            
| relation | 
                                        relation:         
                                     | 
                                
                                            Type :         string
                                         | 
                                    
| Optional | 
| 
                                     Related identifier e.g. model name or assetGroupID  | 
                            
| required | 
                                        required:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     Tells if the field is required in forms  | 
                            
| resolve | 
                                        resolve:         
                                     | 
                                
                                            Type :         function
                                         | 
                                    
| Optional | 
| 
                                     Custom resolve transformation function.  | 
                            
| schema | 
                                        schema:     
                                     | 
                                
                                            Type :     literal type
                                         | 
                                    
| Optional | 
| 
                                     The field's JSON schema.  | 
                            
| showDescription | 
                                        showDescription:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     If true, the field description will be shown below the label (if any)  | 
                            
| showTitle | 
                                        showTitle:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     If true, the field title will be shown beside the label (if any)  | 
                            
| sort | 
                                        sort:         
                                     | 
                                
                                            Type :         function
                                         | 
                                    
| Optional | 
| 
                                     Custom sort transformation function. Its return value will be used for sorting.  | 
                            
| sortable | 
                                        sortable:         
                                     | 
                                
                                            Type :         boolean
                                         | 
                                    
| Optional | 
| 
                                     if false, the field will not be sortable in a list  | 
                            
| title | 
                                        title:         
                                     | 
                                
                                            Type :         function
                                         | 
                                    
| Optional | 
| 
                                     Custom resolve method to get the title, has priority over label property.  | 
                            
| type | 
                                        type:         
                                     | 
                                
                                            Type :         string
                                         | 
                                    
| Optional | 
| 
                                     The field's type (use FieldType.*)  | 
                            
| validate | 
                                        validate:         
                                     | 
                                
                                            Type :         function
                                         | 
                                    
| Optional | 
| 
                                     Custom validation function. Its return value will be used for validation in a form.  | 
                            
| values | 
                                        values:     
                                     | 
                                
                                            Type :     any[]
                                         | 
                                    
| Optional | 
| 
                                     Possible Values e.g. for a select  | 
                            
| view | 
                                        view:         
                                     | 
                                
                                            Type :         string
                                         | 
                                    
| Optional | 
| 
                                     The type of cell view. (e.g. tags, email etc..)  | 
                            
import { Type } from '@angular/core';
/** Configuration for a FieldConfig property. */
export interface FieldConfigProperty {
  /** Property name */
  property?: string;
  /** Human readable field label. Defaults to property name. If false, the label is empty. */
  label?: string | boolean;
  /** Placeholder in inputs */
  placeholder?: string;
  /** Custom resolve transformation function.
   * @param body The item body */
  resolve?: (body: any, item: any, property: string) => any;
  /** Custom resolve method to get the title, has priority over label property. */
  title?: (body: any, item: any, property: string) => any;
  /** Custom edit transformation function. It is used before editing the value, e.g. in a form.
   * @param body The item body */
  // edit?: (value, field, property: string) => any;
  /** Custom serialize transformation function. It is used before saving it, e.g. in a form.
   * @param body The item body */
  // serialize?: (value, field, property: string) => any;
  /** Custom display transformation function.
   * @param value The current property value
   * @param field The field property name */
  display?: (value, field, property: string) => any;
  /** Custom copy transformation function.
   * @param value The current property value
   * @param field The field property name */
  copy?: (value, field, property: string) => any;
  /** Custom group transformation function. Its return value will be used for grouping.
   * @param value The current property value
   * @param field The field property name */
  group?: (value, field) => any;
  /** Custom sort transformation function. Its return value will be used for sorting.
   * @param value The current property value
   * @param field The field property name */
  sort?: (value, field) => any;
  /** Custom validation function. Its return value will be used for validation in a form.
   * @param value The current property value
   * @param field The field property name */
  validate?: (value, field) => any;
  /** Custom validation function. Its return value will be used for validation in a form.
   * @param value The current property value
   * @param field The field property name */
  filter?: (value, items) => any;
  /** The field's type (use FieldType.*) */
  type?: string;
  /** The model title of the entries/entry field */
  model?: string;
  /** The type of cell view. (e.g. tags, email etc..) */
  view?: string;
  /** The type of form input view. Defaults to type if not specified. */
  inputView?: string;
  /** Tells if the field should be hidden */
  hidden?: boolean;
  /** Tells if the field is required in forms */
  required?: boolean;
  /** The field's JSON schema. */
  schema?: {
    type: string;
    title: string;
  };
  /** Custom Component for input (forms) */
  input?: Type<any>;
  /** Custom Component for output (e.g. list cell) */
  output?: Type<any>;
  /** If true, the form input will be disabled when editing */
  readOnly?: boolean;
  /** If true, the property will always be disabled (like readOnly but also on create) */
  disabled?: boolean | any;
  /** If true, the property will be ignored when saving (filtered out from object of emitted object) */
  immutable?: boolean | any;
  /** if false, the field will not be filterable in a list */
  filterable?: boolean;
  /** The operator to use for filtering: exact, search, any etc.. see ec.sdk doc */
  filterOperator?: string;
  /** Defines the class for the filter pop, e.g. in list header. DEPRECATED */
  filterPopClass?: string;
  /** Transforms a string value from the url query to a value that is used for filtering.
   * e.g. transforms "A,B,C" to ['A','B','C'] */
  queryFilter?: (value: string) => any;
  /** if false, the field will not be sortable in a list */
  sortable?: boolean;
  /** if false, the field will not be visible in a list */
  list?: boolean;
  /** if false, the field will not be visible in a form */
  form?: boolean;
  /** If a prefill value is set, it will be used at creation in a form. */
  prefill?: any;
  /** Possible Values e.g. for a select */
  values?: any[];
  /** Defines the maximum of visible item (for tags view or similar). Defaults to 10 */
  maxItems?: number;
  /** Any other configuration properties*/
  action?: (item: any, property: string) => any;
  /** Class string */
  class?: string;
  /** Icon name that should be associated with the field */
  icon?: string;
  /** Related identifier e.g. model name or assetGroupID */
  relation?: string;
  /** If true, the field will be filtered raw (no filterOperator magic) */
  rawFilter?: boolean;
  /** Columns that the field should inhabit in the form grid. */
  columns?: number;
  /** If true, the field wont be shown in the list column filter. */
  hideInColumnFilter?: boolean;
  /** If true, the field wont be shown in the form */
  hideInForm?: boolean;
  /** If true, the field title will be shown beside the label (if any) */
  showTitle?: boolean;
  /** If true, the field description will be shown below the label (if any) */
  showDescription?: boolean;
  /** If true, the field will be hidden in the list (but still be loaded) */
  /* hideInList?: boolean; */
  /** is fired when the value changes in a form */
  changed?: (value: any, form: any) => void;
  /** if true, the field will auto focus after view init */
  autofocus?: boolean;
  /** wildcard for custom config values */
  [key: string]: any;
}