Feature: select custom field type (#7167)

This commit is contained in:
shamoon 2024-07-09 07:57:07 -07:00 committed by GitHub
parent c03aa03ac2
commit 4ad4862641
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 449 additions and 46 deletions

View file

@ -9,6 +9,7 @@ export enum CustomFieldDataType {
Float = 'float',
Monetary = 'monetary',
DocumentLink = 'documentlink',
Select = 'select',
}
export const DATA_TYPE_LABELS = [
@ -44,10 +45,17 @@ export const DATA_TYPE_LABELS = [
id: CustomFieldDataType.DocumentLink,
name: $localize`Document Link`,
},
{
id: CustomFieldDataType.Select,
name: $localize`Select`,
},
]
export interface CustomField extends ObjectWithId {
data_type: CustomFieldDataType
name: string
created?: Date
extra_data?: {
select_options?: string[]
}
}