Enables the user to create, edit, and delete resource attributes.
Specifies the text that's displayed in the add button.
Type: String
Required: Yes
Adds the specified classes to the root element of the component.
Type: String
Required: No
Defines the editor configuration. Each object in the array represents one form field in the row.
label
(ReactNode) - Text label for the form field.info
(ReactNode) - Info link for the form field.errorText
((item, itemIndex) => ReactNode) - Error message text to display as a control validation message. It renders the form field as invalid if the returned value is notnull
orundefined
.constraintText
((item, itemIndex) => ReactNode) - Text to display as a constraint message below the field.control
((item, itemIndex) => ReactNode) - A control to use as the input for the field. A maximum of four fields are supported.
Type: ReadonlyArray<AttributeEditorProps.FieldDefinition>
Required: Yes
Determines whether the add button is disabled.
Type: Boolean
Default: false
Valid values: true | false
Required: No
Adds the specified ID to the root element of the component.
Type: String
Required: No
Function that determines whether an item is removable. When this function returns
false
, the remove button is not rendered and the user can't remove the item. By default, all items are removable.
Type: (item: T) => boolean
Default: () => true
Required: No
Sepcifies the items that serve as the data source for all rows. The display of a row is handled by the
definition
property.
Type: ReadonlyArray
Default: []
Required: No
Specifies the text that's displayed in the remove button.
Type: String
Required: Yes
Displayed below the add button. Use it for additional information related to the attribute editor.
Displayed when there are no items to display.
Called when add button is clicked.
Cancelable: No
Called when remove button is clicked. The event
detail
contains the index of the corresponding item.
Detail type:
AttributeEditorProps.RemoveButtonClickDetail {
itemIndex: number
}
Cancelable: No
The documentation is made available under the Creative Commons Attribution-ShareAlike 4.0 International License. See the LICENSE file.