This commit is contained in:
Nakul Nagargade 2025-06-02 16:06:24 +05:30
parent 161b1440d2
commit 75a9a177a1
3 changed files with 14 additions and 7 deletions

View file

@ -128,7 +128,7 @@ export const listviewConfig = {
},
styles: {
backgroundColor: {
type: 'color',
type: 'colorSwatches',
displayName: 'Background color',
validation: {
schema: { type: 'string' },
@ -136,7 +136,7 @@ export const listviewConfig = {
},
},
borderColor: {
type: 'color',
type: 'colorSwatches',
displayName: 'Border color',
validation: {
schema: { type: 'string' },

View file

@ -24,7 +24,7 @@ export const listviewConfig = {
top: 50,
left: 11,
height: 30,
width: 3,
width: 4,
},
properties: ['text'],
accessorKey: 'text',
@ -128,7 +128,7 @@ export const listviewConfig = {
},
styles: {
backgroundColor: {
type: 'color',
type: 'colorSwatches',
displayName: 'Background color',
validation: {
schema: { type: 'string' },
@ -136,7 +136,7 @@ export const listviewConfig = {
},
},
borderColor: {
type: 'color',
type: 'colorSwatches',
displayName: 'Border color',
validation: {
schema: { type: 'string' },

View file

@ -13,7 +13,7 @@ export const listviewConfig = {
top: 15,
left: 3,
height: 100,
width: 7,
width: 4,
},
properties: ['source'],
accessorKey: 'imageURL',
@ -24,6 +24,7 @@ export const listviewConfig = {
top: 50,
left: 11,
height: 30,
width: 4,
},
properties: ['text'],
accessorKey: 'text',
@ -50,7 +51,13 @@ export const listviewConfig = {
type: 'code',
displayName: 'List data',
validation: {
schema: { type: 'union', schemas: [{ type: 'array', element: { type: 'object' } },{ type: 'array', element: { type: 'string' } }] },
schema: {
type: 'union',
schemas: [
{ type: 'array', element: { type: 'object' } },
{ type: 'array', element: { type: 'string' } },
],
},
defaultValue: "[{text: 'Sample text 1'}]",
},
},