|
|
|
@ -1,7 +1,9 @@ |
|
|
|
/* tslint:disable:variable-name */ |
|
|
|
import { escapeHtmlChars } from '@abp/ng.core'; |
|
|
|
import { Type } from '@angular/core'; |
|
|
|
import { Observable, of } from 'rxjs'; |
|
|
|
import { O } from 'ts-toolbelt'; |
|
|
|
import { ActionCallback } from './actions'; |
|
|
|
import { |
|
|
|
Prop, |
|
|
|
PropCallback, |
|
|
|
@ -11,7 +13,6 @@ import { |
|
|
|
Props, |
|
|
|
PropsFactory, |
|
|
|
} from './props'; |
|
|
|
import { ActionCallback } from './actions'; |
|
|
|
|
|
|
|
export class EntityPropList<R = any> extends PropList<R, EntityProp<R>> {} |
|
|
|
|
|
|
|
@ -41,7 +42,8 @@ export class EntityProp<R = any> extends Prop<R> { |
|
|
|
|
|
|
|
this.columnWidth = options.columnWidth; |
|
|
|
this.sortable = options.sortable || false; |
|
|
|
this.valueResolver = options.valueResolver || (data => of(data.record[this.name])); |
|
|
|
this.valueResolver = |
|
|
|
options.valueResolver || (data => of(escapeHtmlChars(data.record[this.name]))); |
|
|
|
this.action = options.action; |
|
|
|
} |
|
|
|
|
|
|
|
|