You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/js/bootstrap-form-builder/js/data/radio.js

300 lines
8.4 KiB
JavaScript

[
{
"title": "Multiple Radios Inline",
"fields": {
"name": {
"label": "Group Name",
"type": "input",
"value": "flexible"
},
"label": {
"label": "Label Text",
"type": "input",
"value": "Flexible"
},
"radios": {
"label": "Radios",
"type": "textarea-split",
"value": [
"yes",
"no"
]
},
"radiosValues": {
"label": "Radios Values",
"type": "textarea-split",
"value": [
"yes",
"no"
]
}
}
},
{
"title": "Multiple Radios Inline",
"fields": {
"name": {
"label": "Group Name",
"type": "input",
"value": "Grouptype"
},
"label": {
"label": "Label Text",
"type": "input",
"value": "Group type"
},
"radios": {
"label": "Radios",
"type": "textarea-split",
"value": [
"solo", "couple", "family", "group"
]
},
"radiosValues": {
"label": "Radios Values",
"type": "textarea-split",
"value": [
"solo", "couple", "family", "group"
]
}
}
},
{
"title": "Multiple Radios Inline",
"fields": {
"name": {
"label": "Group Name",
"type": "input",
"value": "Hotel"
},
"label": {
"label": "Label Text",
"type": "input",
"value": "Hotel"
},
"radios": {
"label": "Radios",
"type": "textarea-split",
"value": [
"5 Star", "4 Star", "3 Star", "Central Hotel", "Boutique Hotel", "Home Stay", "Apartment", "Star-rated western standard hotel", "mixed", "self booking"
]
},
"radiosValues": {
"label": "Radios Values",
"type": "textarea-split",
"value": [
"5 Star", "4 Star", "3 Star", "Central Hotel", "Boutique Hotel", "Home Stay", "Apartment", "Star-rated western standard hotel", "mixed", "self booking"
]
}
}
},
{
"title": "Multiple Radios",
"fields": {
"name": {
"label": "Group Name",
"type": "input",
"value": "radios"
},
"label": {
"label": "Label Text",
"type": "input",
"value": "Multiple Radios"
},
"radios": {
"label": "Radios",
"type": "textarea-split",
"value": [
"Option one",
"Option two"
]
},
"radiosValues": {
"label": "Radios Values",
"type": "textarea-split",
"value": [
"1",
"2"
]
}
}
},
{
"title": "Multiple Radios Inline",
"fields": {
"name": {
"label": "Group Name",
"type": "input",
"value": "radios"
},
"label": {
"label": "Label Text",
"type": "input",
"value": "Inline Radios"
},
"radios": {
"label": "Radios",
"type": "textarea-split",
"value": [
1,
2,
3,
4
]
},
"radiosValues": {
"label": "Radios Values",
"type": "textarea-split",
"value": [
"1",
"2",
"3",
"4"
]
}
}
},
{
"title": "Multiple Checkboxes",
"fields": {
"name": {
"label": "Group Name",
"type": "input",
"value": "checkboxes"
},
"label": {
"label": "Label Text",
"type": "input",
"value": "Multiple Checkboxes"
},
"checkboxes": {
"label": "Checkboxes",
"type": "textarea-split",
"value": [
"Option one",
"Option two"
]
},
"checkboxesValues": {
"label": "Checkboxes Values",
"type": "textarea-split",
"value": [
"1",
"2"
]
}
}
},
{
"fields": {
"id": {
"type": "input",
"label": "ID / Name",
"value": "appendedcheckbox"
},
"inputsize": {
"type": "select",
"label": "Input Size",
"value": [
{
"label": "Small",
"value": "input-sm",
"selected": false
},
{
"label": "Medium",
"value": "input-md",
"selected": true
},
{
"label": "Large",
"value": "input-lg",
"selected": false
}
]
},
"inputwidth": {
"type": "select",
"label": "Input Width",
"value": [
{
"label": "Short",
"value": "col-sm-8",
"selected": false
},
{
"label": "Medium",
"value": "col-sm-12",
"selected": true
},
{
"label": "Long",
"value": "col-sm-16",
"selected": false
}
]
},
"label": {
"type": "input",
"label": "Label Text",
"value": "Appended Checkbox"
},
"helptext": {
"type": "input",
"label": "Help Text",
"value": "help"
},
"placeholder": {
"type": "input",
"label": "Placeholder",
"value": "placeholder"
},
"checked": {
"type": "checkbox",
"label": "Checked",
"value": true
},
"checked_required": {
"type": "checkbox",
"label": "Required",
"value": false
}
},
"title": "Appended Checkbox"
},
{
"title": "Multiple Checkboxes Inline",
"fields": {
"name": {
"label": "Group Name",
"type": "input",
"value": "checkboxes"
},
"label": {
"label": "Label Text",
"type": "input",
"value": "Inline Checkboxes"
},
"checkboxes": {
"label": "Checkboxes",
"type": "textarea-split",
"value": [
1,
2,
3,
4
]
},
"checkboxesValues": {
"label": "Checkboxes Values",
"type": "textarea-split",
"value": [
"1",
"2",
"3",
"4"
]
}
}
}
]