import { Component } from "@angular/core" ; import { ViewPropertyConfig } from "../../../entity-list/EntityListConfig" ; import { ViewComponent } from "../view-component" ; import { Entity } from "../../../../entity/model/entity" ; @ Component ( { selector : "app-readonly-function" , templateUrl : "./readonly-function.component.html" , styleUrls : [ "./readonly-function.component.scss" ] , } ) export class ReadonlyFunctionComponent extends ViewComponent { displayFunction : ( entity : Entity ) => any ; onInitFromDynamicConfig ( config ) { super . onInitFromDynamicConfig ( config ) ; this . displayFunction = config . config ; } }