From 74275a17ddbaa3944aa8904b69d473365d16d76c Mon Sep 17 00:00:00 2001 From: Masum ULU Date: Tue, 8 Aug 2023 15:14:15 +0300 Subject: [PATCH] Update doc. for entity-action-extensions --- docs/en/UI/Angular/Entity-Action-Extensions.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/en/UI/Angular/Entity-Action-Extensions.md b/docs/en/UI/Angular/Entity-Action-Extensions.md index 1ee0a3b70a..6a9df909fb 100644 --- a/docs/en/UI/Angular/Entity-Action-Extensions.md +++ b/docs/en/UI/Angular/Entity-Action-Extensions.md @@ -312,6 +312,8 @@ type EntityActionOptions = { icon?: string, permission?: string, visible?: ActionPredicate, + btnClass?: string, + btnStyle?: string, }; ``` @@ -322,6 +324,8 @@ 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'`) +- **btnStyle** is the styles that will be applied to the button. (_default:_ `''`) You may find a full example below. @@ -339,6 +343,8 @@ const options: EntityActionOptions = { icon: 'fa fa-unlock', permission: 'AbpIdentity.Users.Update', visible: data => data.record.isLockedOut, + btnClass:'btn-warning', + btnStyle: 'margin-right: 5px;', }; const action = new EntityAction(options);