File

src/app/core/default-values/default-value-config.ts

Description

Describes the default value behaviour of this field, i.e. that this field should automatically be filled with a value when creating a new entity

Index

Properties

Properties

config
config: any
Type : any
Optional

The configuration for the given defaultValue mode. See implementation of each mode for details.

mode
mode: DefaultValueMode
Type : DefaultValueMode

What kind of logic is used to generate the default value:

mode: inherited use the value from linked entity field

mode: static use a static default value

mode: dynamic use a placeholder value, see PLACEHOLDERS enum for available options

export interface DefaultValueConfig {
  /**
   * What kind of logic is used to generate the default value:
   *
   *  mode: inherited
   *  use the value from linked entity field
   *
   *  mode: static
   *  use a static default value
   *
   *  mode: dynamic
   *  use a placeholder value, see PLACEHOLDERS enum for available options
   */
  mode: DefaultValueMode;

  /**
   * The configuration for the given defaultValue mode.
   * See implementation of each mode for details.
   */
  config?: any;
}

export type DefaultValueMode =
  | "inherited-from-referenced-entity"
  | "static"
  | "dynamic"
  | "updated-from-referencing-entity";

results matching ""

    No results matching ""