Browse Source
Merge pull request #5281 from abpframework/fix/5280
Add cursor pointer to extensible table column body
pull/5290/head
Mehmet Erim
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
npm/ng-packs/packages/theme-shared/extensions/src/lib/components/extensible-table/extensible-table.component.html
-
npm/ng-packs/packages/theme-shared/extensions/src/lib/models/entity-props.ts
|
|
|
@ -32,7 +32,8 @@ |
|
|
|
<div |
|
|
|
*ngIf="row['_' + prop.name].visible" |
|
|
|
[innerHTML]="row['_' + prop.name].value | async" |
|
|
|
(click)="prop.action({ getInjected: getInjected, record: row, index: i })" |
|
|
|
(click)="prop.action && prop.action({ getInjected: getInjected, record: row, index: i })" |
|
|
|
[class.pointer]="prop.action" |
|
|
|
></div> |
|
|
|
</ng-container> |
|
|
|
</ng-template> |
|
|
|
|
|
|
|
@ -42,7 +42,7 @@ 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.action = options.action || (_ => {}); |
|
|
|
this.action = options.action; |
|
|
|
} |
|
|
|
|
|
|
|
static create<R = any>(options: EntityPropOptions<R>) { |
|
|
|
|