@helix-x/datagrid-ui - v0.1.2
    Preparing search index...

    Function useEditModel

    • Row-level editing against a draft copy.

      Type Parameters

      • T

        The row type.

      Parameters

      • onCommit: (draft: T, original: T) => RowCommitResult | Promise<RowCommitResult>

        Owns validation and persistence. Return { ok: false, errors } to keep the row open with per-field messages.

      Returns UseEditModelResult<T>

      The edit state and its mutators.

      The draft never touches the data source, and editors never call an API — the single commit callback owns both, so an app can plug in whatever schema library it uses without the grid knowing about it.