Add icon, position and key on View (#4413)
* Add view key field * Update Prefill demo, seed dev, prefill new workspace
This commit is contained in:
@ -41,6 +41,31 @@ export class ViewObjectMetadata extends BaseObjectMetadata {
|
||||
})
|
||||
type: string;
|
||||
|
||||
@FieldMetadata({
|
||||
type: FieldMetadataType.SELECT,
|
||||
label: 'Key',
|
||||
description: 'View key',
|
||||
options: [{ value: 'INDEX', label: 'Index', position: 0, color: 'red' }],
|
||||
defaultValue: { value: 'INDEX' },
|
||||
})
|
||||
@IsNullable()
|
||||
key: string;
|
||||
|
||||
@FieldMetadata({
|
||||
type: FieldMetadataType.TEXT,
|
||||
label: 'Icon',
|
||||
description: 'View icon',
|
||||
})
|
||||
icon: string;
|
||||
|
||||
@FieldMetadata({
|
||||
type: FieldMetadataType.POSITION,
|
||||
label: 'Position',
|
||||
description: 'View position',
|
||||
})
|
||||
@IsNullable()
|
||||
position: number;
|
||||
|
||||
@FieldMetadata({
|
||||
type: FieldMetadataType.BOOLEAN,
|
||||
label: 'Compact View',
|
||||
|
||||
Reference in New Issue
Block a user