groovinads-ui 1.2.65 → 1.2.67
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.
package/README.md
CHANGED
|
@@ -508,6 +508,7 @@ export default InputComponent;
|
|
|
508
508
|
| `icon` | String | No | n/a | n/a | Specifies the name of the icon to be displayed inside the input. |
|
|
509
509
|
| `label` | String | No | n/a | 'Label' | Input field that handles different `type` of data based on the assigned type prop. Allows for adding icons, managing error messages, and other functionalities. |
|
|
510
510
|
| `max` | Number | No | n/a | n/a | Specifies the maximum value that the input field can accept. |
|
|
511
|
+
| `maxLength` | Number | No | n/a | n/a | Specifies the maximum number of characters that the input field can accept. |
|
|
511
512
|
| `min` | Number | No | n/a | n/a | Specifies the minimum value that the input field can accept. |
|
|
512
513
|
| `name` | String | No | n/a | n/a | Indicates the name attribute for the input element, which represents the form data after it is submitted. |
|
|
513
514
|
| `onChange` | Function | No | n/a | n/a | Allows the user to update the value of the input field and synchronizes the field's value with the component's internal state. |
|
|
@@ -593,7 +594,6 @@ const ExampleInputEmail = () => {
|
|
|
593
594
|
/* The responses from the three APIs expect an array of strings (or an empty array) */
|
|
594
595
|
apiGetEmail='incert/your/endpoint'
|
|
595
596
|
apiPostEmail='incert/your/endpoint'
|
|
596
|
-
apiDeleteEmail='incert/your/endpoint'
|
|
597
597
|
showModal={showModal} // showModal indicates the visibility of the parent component of InputEmail.
|
|
598
598
|
/>
|
|
599
599
|
);
|
|
@@ -603,9 +603,8 @@ export default ExampleInputChip;
|
|
|
603
603
|
|
|
604
604
|
| Property | Type | Required | Options | Default | Description |
|
|
605
605
|
| ---------------- | ------- | -------- | -------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
606
|
-
| `apiDeleteEmail` | String | Yes | n/a | n/a | Endpoint required to remove emails from the list of added emails. |
|
|
607
606
|
| `apiGetEmail` | Array | Yes | n/a | n/a | Endpoint required to fetch the email list. The response should be an array of strings (or empy array) displayed below the input and `titleList`. |
|
|
608
|
-
| `apiPostEmail` | String | Yes | n/a | n/a |
|
|
607
|
+
| `apiPostEmail` | String | Yes | n/a | n/a | An endpoint is required to add or remove emails from the existing email list. |
|
|
609
608
|
| `label` | String | No | n/a | '' | Allows adding custom text as the input label. |
|
|
610
609
|
| `showModal` | Boolean | No | `true` `false` | `true` | If true, the email list received from apiGetEmail will be shown when rendering InputEmail. |
|
|
611
610
|
| `textButton` | String | No | n/a | '' | Allows adding custom text to the button for adding emails. |
|