Browse Source

Update Entity-Action-Extensions.md

pull/17345/head
Masum ULU 3 years ago
committed by GitHub
parent
commit
51cdfd4cc6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docs/en/UI/Angular/Entity-Action-Extensions.md

6
docs/en/UI/Angular/Entity-Action-Extensions.md

@ -324,7 +324,7 @@ As you see, passing `action` and `text` is enough to create an entity action. He
- **icon** is the classes that define an icon to be placed before the text. (_default:_ `''`)
- **permission** is the permission context which will be used to decide if this type of grid action should be displayed to the user or not. (_default:_ `undefined`)
- **visible** is a predicate that will be used to decide if the current record should have this grid action or not. (_default:_ `() => true`)
- **btnClass** is the classes that will be applied to the button. (_default:_ `'btn btn-primary'`)
- **btnClass** is the classes that will be applied to the button. (_default:_ `'btn btn-primary text-center'`)
- **btnStyle** is the styles that will be applied to the button. (_default:_ `''`)
You may find a full example below.
@ -343,8 +343,8 @@ const options: EntityActionOptions<IdentityUserDto> = {
icon: 'fa fa-unlock',
permission: 'AbpIdentity.Users.Update',
visible: data => data.record.isLockedOut,
btnClass:'btn-warning',
btnStyle: 'margin-right: 5px;',
btnClass:'btn btn-warning text-center',
btnStyle: '', //Adds inline style
};
const action = new EntityAction(options);

Loading…
Cancel
Save