Close
Angular React Web Components Blazor Web Components
Premium

Row Actions in Web Components Grid

The Ignite UI for Web Components Row Actions feature in Web Components Grid enables developers to use an ActionStrip and utilize CRUD for row/cell components and row pinning. There are several predefined UI controls for these operations that are applicable to a specific row in the IgcGrid – editing and pinning.

Usage

The predefined actions UI components are:

  • GridEditingActions - includes functionality and UI specifically designed for the IgcGrid editing. It allows you to quickly toggle edit mode for cells or rows, depending on the IgcGrid.rowEditable option and row deletion of the IgcGrid.

  • GridPinningActions - includes functionality and UI specifically designed for the IgcGrid row pinning. It allows you to quickly pin rows and navigate between pinned rows and their disabled counterparts.

They are added inside the IgcGrid and this is all needed to have an ActionStrip providing default interactions.

When IgcActionStripComponent is a child component of the IgcGrid, hovering a row will automatically show the UI.

Custom Implementation

These components expose templates giving flexibility for customization. For instance, if we would like to use the ActionStrip for a Gmail scenario with row actions such as delete, edit and etc. You can simply create button component with icon, add click event to it and insert it into the ActionStrip.

<igc-grid>
    <igc-action-strip #actionstrip>
        <igc-grid-pinning-actions></igc-grid-pinning-actions>
        <igc-grid-editing-actions edit-row="true" delete-row="true"></igc-grid-editing-actions>
    </igc-action-strip>
</igc-grid>

API References