Type
Properties
Required Properties
| Property | Type | Description |
|---|---|---|
| taxon | taxon | The data element (attribute) to display and edit |
Optional Properties
| Property | Type | Description | Default |
|---|---|---|---|
| attributeLabel | string | Custom label to display (overrides taxon label) | - |
editorOptions (object)
Advanced configuration for the attribute editor behavior and appearance.| Sub-Property | Type | Description | Default |
|---|---|---|---|
| hideAttributeMenu | boolean | Hide the attribute menu | false |
| isCheckbox | boolean | Enable checkbox input type | false |
| onCheckValue | string | Value when checkbox is checked | ”None” |
| isMaskedText | boolean | Enable masked text input for date fields | false |
| maskedText | string | Input mask pattern (e.g., 00/00/0000 for 4-digit year) | 00/00/0000 |
| maskDateFormat | string | Date format for masked input (e.g., MM/dd/yyyy) | MM/dd/yyyy |
| sourceDateFormat | string | Format for storing dates (e.g., yyyy-MM-dd) | yyyy-MM-dd |
| showCalendarPopup | boolean | Show a calendar popup for date selection | false |
Layout
- Default Width: 3 columns
- Default Height: 2 rows
- Supports Children: No
Configuration Examples
Basic Text Attribute
Boolean Attribute with Checkbox
Date Attribute with Masked Input
Hide Attribute Menu
Advanced Usage
Data Object Scoping
The component automatically scopes to the correct data objects based on:- The taxon’s parent path
- The parent data object (if provided in the card panel context)
Fresh Parent References
The component handles stale reference issues by always fetching the fresh parent data object from the workspace store, preventing issues with outdated data object states.Label Display
For non-boolean attributes, a label is displayed above the editor showing either:- The custom
attributeLabelproperty if provided - The taxon’s label from metadata
- The taxon’s name as a fallback
Multiple Instances
If multiple data objects match the scoping criteria, the component renders an editor for each instance. This is useful for editing arrays of values.Event Emission
The component emits events for:deleteDataObject: When a data object is deleted from the editoraddDataObject: When a new data object is added
Complete Form Example
Notes
- The component requires the taxon to exist in the project’s taxonomy metadata
- If the taxon is not found, the component renders nothing
- Boolean taxon types automatically hide the label to avoid redundancy
- Masked date inputs support both 2-digit and 4-digit year formats
- The calendar popup requires
showCalendarPopupto be enabled - Attribute menu provides additional actions like adding/deleting values
- The editor integrates with the data object editing system for undo/redo
- Changes are automatically synced to the workspace store
