Row Actions in Blazor Grid

    Blazor Grid의 Ignite UI for Blazor Row Actions 기능을 사용하면 개발자가 IgbActionStrip을 사용하고 행/셀 구성 요소와 행 고정을 위한 CRUD를 활용할 수 있습니다. 이러한 작업에 대한 여러 가지 미리 정의된 UI 컨트롤이 있으며, IgbGrid의 특정 행(편집 및 고정)에 적용할 수 있습니다.

    Usage

    사전 정의된 작업 UI 구성 요소는 다음과 같습니다.

    • IgbGridEditingActions-IgbGrid 편집을 위해 특별히 설계된 기능과 UI가 포함되어 있습니다. RowEditable 옵션과 IgbGrid의 행 삭제에 따라 셀이나 행의 편집 모드를 빠르게 전환할 수 있습니다.

    • IgbGridPinningActions-IgbGrid 행 고정을 위해 특별히 설계된 기능과 UI가 포함되어 있습니다. 이를 통해 행을 빠르게 고정하고 고정된 행과 비활성화된 행 사이를 탐색할 수 있습니다.

    이는 IgbGrid 내부에 추가되며 기본 상호 작용을 제공하는 IgbActionStrip 갖는 데 모두 필요합니다.

    <IgbGrid Data=northwindEmployees RowEditable="True" PrimaryKey="ID">
        @foreach (var c in columns)
        {
            <IgbColumn Field="@c.Field">
            </IgbColumn>
        }
        <IgbActionStrip @ref=actionstrip>
            <IgbGridPinningActions></IgbGridPinningActions>
            <IgbGridEditingActions></IgbGridEditingActions>
        </IgbActionStrip>
    </IgbGrid>
    razor

    When ActionStripComponent is a child component of the IgbGrid, hovering a row will automatically show the UI.

    Custom Implementation

    이러한 구성 요소는 사용자 지정을 위한 유연성을 제공하는 템플릿을 노출합니다. 예를 들어, IgbActionStrip 다음과 같은 행 작업이 있는 Gmail 시나리오의 경우 삭제하다, 편집하다 그리고 등등. 아이콘으로 버튼 구성 요소를 만들고 클릭 이벤트를 추가하고 삽입 할 수 있습니다. IgbActionStrip.

    <div class="grid__wrapper">
        <IgbGrid Data=northwindEmployees>
            <IgbActionStrip @ref=actionstrip>
                <IgbGridPinningActions></IgbGridPinningActions>
                <IgbButton Title="Edit" @onclick="() => StartEdit(actionstrip.Context)">
                    <IgbIcon>edit</IgbIcon>
                </IgbButton>
                @if (!IsDeleted(actionstrip.Context))
                {
                    <IgbButton Title="Delete" @onclick="() => Delete(actionstrip.Context)">
                        <IgbIcon>delete</IgbIcon>
                    </IgbButton>
                }
            </IgbActionStrip>
        </IgbGrid>
    </div>
    razor

    EXAMPLE
    DATA
    MODULES
    RAZOR
    CSS

    Like this sample? Get access to our complete Ignite UI for Blazor toolkit and start building your own apps in minutes. Download it for free.

    API References

    우리 커뮤니티는 활동적이며 항상 새로운 아이디어를 환영합니다.