The Ignite UI for Web Components Row Actions feature in Web Components Hierarchical Grid enables developers to use an IgcActionStrip 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 IgcHierarchicalGridComponent – editing and pinning.
IgcGridPinningActions - includes functionality and UI specifically designed for the IgcHierarchicalGridComponent row pinning. It allows you to quickly pin rows and navigate between pinned rows and their disabled counterparts.
When ActionStripComponent is a child component of the IgcHierarchicalGridComponent, 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 IgcActionStrip 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 IgcActionStrip.
<!DOCTYPE html><html><head><title>Sample | Ignite UI | Web Components | infragistics</title><metacharset="UTF-8" /><linkrel="shortcut icon"href="https://static.infragistics.com/xplatform/images/browsers/wc.png" ><linkrel="stylesheet"href="https://fonts.googleapis.com/icon?family=Material+Icons" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Kanit&display=swap" /><linkrel="stylesheet"href="https://fonts.googleapis.com/css?family=Titillium Web" /><linkrel="stylesheet"href="https://static.infragistics.com/xplatform/css/samples/shared.v8.css" /><linkrel="stylesheet"href="/src/index.css"type="text/css" /></head><body><divid="root"><divclass="container sample ig-typography"><divclass="container fill"><igc-hierarchical-gridauto-generate="false"primary-key="ID"row-editable="true"allow-filtering="true"name="hierarchicalGrid1"id="hierarchicalGrid1"><igc-action-stripname="actionStrip"id="actionStrip"><igc-grid-pinning-actions
></igc-grid-pinning-actions><igc-grid-editing-actionsedit-row="true"delete-row="true"add-row="true"></igc-grid-editing-actions></igc-action-strip><igc-columnfield="Artist"header="Artist"data-type="string"sortable="true"></igc-column><igc-columnfield="Photo"header="Photo"data-type="image"sortable="true"></igc-column><igc-columnfield="Debut"header="Debut"data-type="number"sortable="true"></igc-column><igc-columnfield="GrammyNominations"header="Grammy Nominations"data-type="number"sortable="true"></igc-column><igc-columnfield="GrammyAwards"header="Grammy Awards"data-type="number"sortable="true"></igc-column><igc-row-islandchild-data-key="Albums"auto-generate="false"><igc-columnfield="Album"header="Album"data-type="string"sortable="true"></igc-column><igc-columnfield="LaunchDate"header="Launch Date"data-type="date"sortable="true"></igc-column><igc-columnfield="BillboardReview"header="Billboard Review"data-type="string"sortable="true"></igc-column><igc-columnfield="USBillboard200"header="US Billboard 200"data-type="string"sortable="true"></igc-column><igc-row-islandchild-data-key="Songs"auto-generate="false"><igc-columnfield="Number"header="No."data-type="string"></igc-column><igc-columnfield="Title"header="Title"data-type="string"></igc-column><igc-columnfield="Released"header="Released"data-type="date"></igc-column><igc-columnfield="Genre"header="Genre"data-type="string"></igc-column></igc-row-island></igc-row-island><igc-row-islandchild-data-key="Tours"auto-generate="false"><igc-columnfield="Tour"header="Tour"data-type="string"></igc-column><igc-columnfield="StartedOn"header="Started on"data-type="string"></igc-column><igc-columnfield="Location"header="Location"data-type="string"></igc-column><igc-columnfield="Headliner"header="Headliner"data-type="string"></igc-column></igc-row-island></igc-hierarchical-grid></div></div></div><!-- This script is needed only for parcel and it will be excluded for webpack -->
<% if (false) { %><scriptsrc="src/index.ts"></script><% } %>
</body></html>html
/* shared styles are loaded from: *//* https://static.infragistics.com/xplatform/css/samples */css
Like this sample? Get access to our complete Ignite UI for Web Components toolkit and start building your own apps in minutes. Download it for free.