s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Fields · Components

FieldPolicyEditor

No summary has been written for FieldPolicyEditor. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

Public export

typescript
import { FieldPolicyEditor } from '@happyvertical/smrt-fields/svelte';
Import path
@happyvertical/smrt-fields/svelte
Props
7
Props described
7 of 7
Bindable state
0
Callback events
2
Verified release
0.44.0

Props

NameTypeRequiredDescription
stateFieldPolicyEditorStateYesCurrent editor state including policy rows, capabilities, and field metadata.
adapterFieldPolicyEditorAdapterYesTransport and mutation handler for policy row operations.
fieldsReadonly<Record<string, ObjectFormFieldDefinition>>YesField definitions for the object being edited.
inputRegistryFieldInputRegistryNoOptional registry of custom field input components.
organizationScopeFieldPolicyOrganizationScopeNoScope level for organization defaults (e.g., 'tenant').
onclose() => voidYesCallback invoked when the editor dialog closes.
onmutated() => Promise<void>YesAsync callback invoked after policy mutations are saved.

Bindable state

This component has no bindable public state.

Callback events

  • onclose() => void
  • onmutated() => Promise<void>

Examples and explanation