Starts in:
1 DAY
16 HRS
14 MIN
32 SEC
Starts in:
1 D
16 H
14 M
32 S
Open Closed

Recommended Approach to Customizing the Appearance of an Entity Action column from Abp Modules #2971


User avatar
0
balessi75 created

Abp Commercial 5.2.0 / Blazor Server / EF Core

We've overridden the User Management page, but noticed that the Grid is built using AbpExtensibleDataGrid, so it appears that UI customizations are not possible, is that correct?

We are attempting to modify the Actions drop-down button so that it has an icon within it (similar to what is seen in the Easy CRM demo that is not built with Blazor).

Is there a recommended approach to doing this?

Thanks in advance, -Brian


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can try to override the SetEntityActionsAsync method of your Components

    EntityActions
        .Get<UserManagement>()
        .AddRange(new EntityAction[]
        {
                new EntityAction
                {
                    Text = L["Edit"],
                    Visible = (data) => HasUpdatePermission,
                    Clicked = async (data) => await OpenEditModalAsync(data.As<IdentityUserDto>()),
                    Icon = xxxx
                }
        });
    

    https://github.com/abpframework/abp/blob/20fa13f5696ce8a43580b0c2a6f34c23352650c2/framework/src/Volo.Abp.AspNetCore.Components.Web/Volo/Abp/AspNetCore/Components/Web/Extensibility/EntityActions/EntityAction.cs#L13

    https://github.com/abpframework/abp/blob/0fd542a13833fcecf47174f2870bde9e2133a158/framework/src/Volo.Abp.BlazoriseUI/Components/AbpExtensibleDataGrid.razor#L46

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06