Browse Source
Merge pull request #18069 from abpframework/update-entity-actions-doc
Fix wrong import in Entity Action Extensions
pull/18072/head
Masum ULU
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
7 deletions
-
docs/en/UI/Angular/Entity-Action-Extensions.md
|
|
|
@ -16,19 +16,16 @@ In this example, we will add a "Click Me!" action and alert the current row's `u |
|
|
|
|
|
|
|
The following code prepares a constant named `identityEntityActionContributors`, ready to be imported and used in your root module: |
|
|
|
|
|
|
|
```js |
|
|
|
```ts |
|
|
|
// src/app/entity-action-contributors.ts |
|
|
|
|
|
|
|
import { |
|
|
|
eIdentityComponents, |
|
|
|
IdentityEntityActionContributors, |
|
|
|
IdentityUserDto, |
|
|
|
} from '@abp/ng.identity'; |
|
|
|
import { eIdentityComponents, IdentityEntityActionContributors } from '@abp/ng.identity'; |
|
|
|
import { IdentityUserDto } from '@abp/ng.identity/proxy'; |
|
|
|
import { EntityAction, EntityActionList } from '@abp/ng.theme.shared/extensions'; |
|
|
|
|
|
|
|
const alertUserName = new EntityAction<IdentityUserDto>({ |
|
|
|
text: 'Click Me!', |
|
|
|
action: data => { |
|
|
|
action: (data) => { |
|
|
|
// Replace alert with your custom code |
|
|
|
alert(data.record.userName); |
|
|
|
}, |
|
|
|
|