From 51cdfd4cc69a52e7ca151f6c5b2f168533f75cb1 Mon Sep 17 00:00:00 2001 From: Masum ULU <49063256+masumulu28@users.noreply.github.com> Date: Thu, 10 Aug 2023 14:59:39 +0300 Subject: [PATCH] Update Entity-Action-Extensions.md --- docs/en/UI/Angular/Entity-Action-Extensions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/UI/Angular/Entity-Action-Extensions.md b/docs/en/UI/Angular/Entity-Action-Extensions.md index 6a9df909fb..3ab035b04a 100644 --- a/docs/en/UI/Angular/Entity-Action-Extensions.md +++ b/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 = { 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);