Skip to content

Instantly share code, notes, and snippets.

@mdalaminbey
Created July 23, 2023 06:17
Show Gist options
  • Select an option

  • Save mdalaminbey/c7afc42a5dc8cefa8f769686301b1747 to your computer and use it in GitHub Desktop.

Select an option

Save mdalaminbey/c7afc42a5dc8cefa8f769686301b1747 to your computer and use it in GitHub Desktop.
import { v4 as uuidv4 } from 'uuid';
const question = {
id: uuidv4(),
title: 'Date',
screen_type: 'date',
icon: 'date',
isPro: false,
isComing: false,
position: { x: -150, y: 0 },
controls: {
general: [
{
key: 'label',
text: '',
},
{
key: 'description',
text: '',
},
{
key: 'required',
isActive: '0',
},
{
key: 'format',
dateFormat: 'MM-DD-YYYY',
},
{
key: 'separator',
sign: '-',
},
{
key: 'action-btn',
isActive: '0',
},
{
key: 'btn-text',
button_text: 'Submit',
},
],
fieldDesign: [
{
labelStyle: [
{
key: 'font-size',
font_size: '20',
},
{
key: 'font-weight',
font_weight: '600',
},
{
key: 'text-color',
text_color: '#000000',
},
],
},
{
buttonStyle: [
{
key: 'btn-color',
button_color: '#6551F2',
},
{
key: 'btn-radius',
button_radius: '10',
},
{
key: 'btn-text-color',
text_color: '#ffffff',
},
{
key: 'btn-font-size',
font_size: '15',
},
],
},
{
mediaStyle: [
{
key: 'video-overlay',
is_video_overlay_active: '1',
},
{
key: 'overlay-color',
overlay_color: '#000000',
},
{
key: 'overlay-opacity',
overlay_opacity: '30',
},
],
},
],
fieldLogic: [],
},
groupName: 'basic',
medias: [],
layout: 'content-right',
};
export default question;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment