Web Components Hierarchical Grid의 Ignite UI for Web Components 행 작업 기능을 통해 개발자는 행/셀 구성 요소 및 행 고정에 CRUD를 사용하고 IgcActionStrip 활용할 수 있습니다. 이러한 작업에 대해 편집 및 고정의 특정 행에 적용할 수 있는 몇 가지 미리 정의된 UI 컨트롤이 IgcHierarchicalGridComponent 있습니다.
ActionStripComponent가 IgcHierarchicalGridComponent의 하위 구성 요소인 경우 행을 마우스로 가리키면 UI가 자동으로 표시됩니다.
사용자 지정 구현
이러한 구성 요소는 사용자 지정을 위한 유연성을 제공하는 템플릿을 노출합니다. 예를 들어, IgcActionStrip 다음과 같은 행 작업이 있는 Gmail 시나리오의 경우 삭제하다, 편집하다 그리고 등등. 아이콘이 있는 버튼 구성 요소를 만들고 클릭 이벤트를 추가하고 삽입하기만 하면 됩니다. 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
이 샘플이 마음에 드시나요? 당사의 완전한 Ignite UI for Web Components 툴킷에 액세스하여 몇 분 만에 나만의 앱을 빌드하기 시작하세요. 무료로 다운로드하세요.