canDelete
canDelete: undefined | (
(datum: Datum) => boolean)
canEdit
canEdit: undefined | (
(datum: Datum) => boolean)
createFormEdit:
| null
| ((form_creator: FormCreator, closeCallback: () => void) => HTMLElement)
createFormNew:
| null
| ((form_creator: FormCreator, closeCallback: () => void) => HTMLElement)
editFirst
editFirst: boolean
fields
fields: { id: string; label: string; type: string }[]
formCont: {
close: () => void;
el?: HTMLElement;
open: () => void;
populate: (form_element: HTMLElement) => void;
}
is_fixed
is_fixed: boolean
Optional
link_existing_rel_config
link_existing_rel_config?: { linkRelLabel: (d: Datum) => string; select_placeholder?: string; title?: string;} onChange
onChange: null | (() => void)
onDelete
onDelete: | undefined | (
( datum: Datum, deletePerson: () => void, postSubmit: (props: any) => void, ) => void )
onFormCreation:
| null
| ((props: { cont: HTMLElement; form_creator: FormCreator }) => void)
onSubmit
onSubmit: | undefined | (
( e: Event, datum: Datum, applyChanges: () => void, postSubmit: () => void, ) => void )
postSubmit
postSubmit: null | (
(datum: Datum, data: Data) => void)
removeRelativeInstance
removeRelativeInstance: RemoveRelative
EditTree class - Provides comprehensive editing capabilities for family tree data.
This class handles all editing operations for family tree data, including:
Example