@syncfusion/ej2-react-form-renderer 0.1.0-beta → 0.1.2-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,24 +38,45 @@ export interface FormRendererProps extends Omit<React.HTMLAttributes<HTMLDivElem
38
38
  * - FormSchema object (components converted to DataSchema)
39
39
  * - DataSchema object (used directly)
40
40
  */
41
- dataSchema?: DataSchema | string | FormSchema | any;
41
+ schema?: DataSchema | string | FormSchema | any;
42
42
  /**
43
- * UI Schema - can be provided as:
44
- * - JSON string (validated and parsed)
45
- * - UISchema object (used directly)
43
+ * Specifies the locale/language for the form component.
44
+ * Supports locale-specific formatting and translations.
45
+ * @default 'en-US'
46
+ */
47
+ locale?: string;
48
+ /**
49
+ * Callback invoked when the form is submitted.
50
+ * Receives form data and validation status.
51
+ * @param args - Object containing form data and isValid flag
46
52
  */
47
- uiSchema?: UISchema | string;
48
53
  onSubmit?: (args: SubmitEventArgs) => void;
54
+ /**
55
+ * Callback invoked when any form field value changes.
56
+ * Fired on user input for tracked fields.
57
+ * @param args - Object containing changed field name and new value
58
+ */
49
59
  onChange?: (args: ChangeEventArgs) => void;
60
+ /**
61
+ * Callback invoked when a button in the form is clicked.
62
+ * Applies to all button types (button, submit, splitButton).
63
+ * @param args - Object containing button click event details
64
+ */
50
65
  onButtonClick?: (args: ButtonClickEventArgs) => void;
66
+ /**
67
+ * CSS class names to apply to the root form container element.
68
+ * Supports space-separated multiple classes.
69
+ */
51
70
  className?: string;
52
71
  /**
53
- * Form layout configuration (only applies when UI schema is NOT provided)
72
+ * Form layout configuration (only applies when UI schema is NOT provided).
73
+ * Determines how form fields are arranged in columns.
54
74
  * @default FormLayout.SingleColumn
55
75
  */
56
76
  layout?: FormLayout;
57
77
  /**
58
- * Called when all form elements are rendered and ready
78
+ * Called when all form elements are rendered and ready for interaction.
79
+ * Useful for performing post-render initialization or setup.
59
80
  */
60
81
  created?: () => void;
61
82
  }