NativeResourceFormSheet
packages/ui-native/src/data/resource-view/NativeResourceFormSheet.tsx
Import
Subpath export:
@marktiderman/genesis-ui-native/dataimport { NativeResourceFormSheet } from "@marktiderman/genesis-ui-native/data";Components
Auto-generated from TypeScript source via
react-docgen-typescript.NativeResourceFormSheet
| Prop | Type | Default | Description |
|---|---|---|---|
| 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 | — | |
| initial | Values | — | The row being edited (fetched by id), or a create's starting values. |
| loading | boolean | false | The record is still loading: a spinner instead of fields, and Save is off. |
| recordKey | string | — | Which record the sheet holds; the form starts over when it (or `open`) changes. |
| testID | string | native-resource-form |