Value Type
A guide to defining a custom Value Type in Umbraco.
Built-in types
Constant
Key
TypeScript type
Defining a value type
export type MyStatusValue = 'active' | 'inactive' | 'pending';
export const MY_STATUS_VALUE_TYPE = 'My.ValueType.Status' as const;
declare global {
interface UmbValueTypeMap {
[MY_STATUS_VALUE_TYPE]: MyStatusValue;
}
}Naming
Category
Pattern
Example
Use cases
Value SummaryProperty Editor Value Summary
Last updated
Was this helpful?