Merge pull request #8225 from abpframework/berkan/docs-update

Use Visible instead of RequiredPolicy for Blazor
pull/8223/head^2
Halil İbrahim Kalkan 5 years ago committed by GitHub
commit d771426216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -516,7 +516,7 @@ Wrap the *New Book* button by an `if` block as shown below:
#### Hide the Edit/Delete Actions
`EntityAction` component defines `RequiredPolicy` attribute (parameter) to conditionally show the action based on the user permissions.
`EntityAction` component defines `Visible` attribute (parameter) to conditionally show the action.
Update the `EntityActions` section as shown below:
@ -524,11 +524,11 @@ Update the `EntityActions` section as shown below:
<EntityActions TItem="BookDto" EntityActionsColumn="@EntityActionsColumn">
<EntityAction TItem="BookDto"
Text="@L["Edit"]"
RequiredPolicy="@UpdatePolicyName"
Visible=HasUpdatePermission
Clicked="() => OpenEditModalAsync(context)" />
<EntityAction TItem="BookDto"
Text="@L["Delete"]"
RequiredPolicy="@DeletePolicyName"
Visible=HasDeletePermission
Clicked="() => DeleteEntityAsync(context)"
ConfirmationMessage="()=>GetDeleteConfirmationMessage(context)" />
</EntityActions>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Loading…
Cancel
Save