MultiSelectLookup
Multi-value lookup datatype.
| Name | Description | Type |
|---|---|---|
values | Items. | Lookup[] |
Helper Methods and Properties
⚠️ Note
These helper methods and properties are available when using the npm package @m-filescorporation/uix-vault-messages. Install it in your project to use these helpers. For more information, see Overview/VaultMessages/.
Factory Methods
| Method | Description | Parameters | Returns |
|---|---|---|---|
Create | Create a new MultiSelectLookup object from an array of Lookup objects or numeric item IDs. If a number is provided, it will be converted to a Lookup with that item ID. | value: Array<Lookup | number> | MultiSelectLookup |
Instance Methods
| Method | Description | Parameters | Returns |
|---|---|---|---|
Add | Adds a new value to the MultiSelectLookup. | value: Lookup | number | MultiSelectLookup |
ToString | Returns a string representation of the MultiSelectLookup. | string | null |
Creating Objects
// Create a new MultiSelectLookup object from an array of Lookup objects or numeric item IDs. If a number is provided, it will be converted to a Lookup with that item ID.
const result = MultiSelectLookup.Create([]);
Working with Objects
// Extension helpers for MultiSelectLookup instances
// Adds a new value to the MultiSelectLookup.
const result = multiselectlookupInstance.Add(new Lookup());
// Returns a string representation of the MultiSelectLookup.
const result = multiselectlookupInstance.ToString();
Example
{
"values": [] /* Array of Lookup */
}