2021-04-02 04:16:26 +00:00
|
|
|
export const componentTypes = [
|
|
|
|
|
{
|
|
|
|
|
icon: 'https://www.svgrepo.com/show/243696/buy-click.svg',
|
|
|
|
|
name: 'Button',
|
|
|
|
|
description: 'Trigger actions like run queries, open other pages etc',
|
|
|
|
|
component: 'Button',
|
2021-04-02 09:24:51 +00:00
|
|
|
properties: {
|
|
|
|
|
text: { type: 'string'} ,
|
|
|
|
|
// { 'style': { 'type': 'select', data: [{ name: 'Primary', value: 'primary' }, { name: 'Secondary', value: 'secondary' }] } },
|
|
|
|
|
visible: { type: 'string' }
|
|
|
|
|
},
|
2021-04-02 04:16:26 +00:00
|
|
|
events: [
|
|
|
|
|
'onClick'
|
|
|
|
|
],
|
2021-04-02 09:24:51 +00:00
|
|
|
styles: {
|
|
|
|
|
backgroundColor: { type: 'color'},
|
|
|
|
|
textColor: { type: 'color'}
|
|
|
|
|
},
|
|
|
|
|
definition: {
|
|
|
|
|
properties: {
|
|
|
|
|
'text': { value: 'Button' },
|
|
|
|
|
'visible': { value: true },
|
|
|
|
|
},
|
|
|
|
|
events: {
|
2021-04-02 15:42:48 +00:00
|
|
|
// onClick: { actionId: 'show-alert', options: { 'message': 'Message !'} }
|
|
|
|
|
onClick: { }
|
2021-04-02 09:24:51 +00:00
|
|
|
},
|
|
|
|
|
styles: {
|
|
|
|
|
backgroundColor: { value: '#3c92dc' },
|
|
|
|
|
textColor: { value: '#fff' }
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-04-02 04:16:26 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
icon: 'https://www.svgrepo.com/show/54455/table.svg',
|
|
|
|
|
name: 'Table',
|
|
|
|
|
description: 'Display paginated tabular data'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: 'https://www.svgrepo.com/show/38828/text.svg',
|
|
|
|
|
name: 'Text Input',
|
|
|
|
|
description: 'Display paginated tabular data',
|
|
|
|
|
component: 'TextInput',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: 'https://www.svgrepo.com/show/219344/text.svg',
|
|
|
|
|
name: 'Text',
|
|
|
|
|
description: 'Display markdown or HTML',
|
|
|
|
|
component: 'Text',
|
|
|
|
|
properties: [
|
|
|
|
|
{ 'text': { 'type': 'string'} },
|
|
|
|
|
{ 'visible': { 'type': 'boolean', default: 'true' }}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
]
|