Genesis
@stable

NativeResourceFormSheet

packages/ui-native/src/data/resource-view/NativeResourceFormSheet.tsx

Import
Subpath export: @marktiderman/genesis-ui-native/data
import { NativeResourceFormSheet } from "@marktiderman/genesis-ui-native/data";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

NativeResourceFormSheet

PropTypeDefaultDescription
fields*readonly NativeFormField[]—
mode*enum—
onCancel*() => void—
onSave*(values: Values, dirty: ReadonlySet<string>) => Promise<SaveResult>—Saves with the fields the person changed; the sheet closes on `{ ok: true }` and shows the refusal otherwise.
open*boolean—
title*string—
initialValues—The row being edited (fetched by id), or a create's starting values.
loadingbooleanfalseThe record is still loading: a spinner instead of fields, and Save is off.
recordKeystring—Which record the sheet holds; the form starts over when it (or `open`) changes.
testIDstringnative-resource-form