Create Checkbox

This commit is contained in:
Llewellyn 2024-08-23 17:23:36 +00:00
parent 67f9c9983d
commit 9665551e72

View File

@ -0,0 +1,81 @@
{
"name": "Checkbox",
"short_description": "provides a single checkbox to be checked or unchecked",
"description": "The checkbox form field type provides a single checkbox. If the parameter has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected.",
"properties": {
"properties0": {
"name": "type",
"example": "checkbox",
"mandatory": "1",
"description": "(mandatory) must be checkbox"
},
"properties1": {
"name": "name",
"example": "show_title",
"adjustable": "1",
"mandatory": "1",
"description": "(mandatory) is the unique name of the parameter."
},
"properties2": {
"name": "label",
"example": "Show title",
"adjustable": "1",
"mandatory": "1",
"translatable": "1",
"description": "(mandatory) (translatable) is the descriptive title of the field."
},
"properties3": {
"name": "value",
"example": "1",
"adjustable": "1",
"description": "(optional) is the value of the parameter if this checkbox is set (usually 1)."
},
"properties4": {
"name": "default",
"example": "",
"adjustable": "1",
"description": "(optional) is the default value (usually 0 or 1)."
},
"properties5": {
"name": "required",
"example": "",
"adjustable": "1",
"description": "(optional) The field must be filled before submitting the form."
},
"properties6": {
"name": "description",
"example": "Show the title of the item",
"adjustable": "1",
"translatable": "1",
"description": "(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the label."
},
"properties7": {
"name": "class",
"example": "inputbox",
"adjustable": "1",
"description": "(optional) is a CSS class name for the HTML form field. If omitted this will default to 'inputbox'."
},
"properties8": {
"name": "showon",
"example": "",
"adjustable": "1",
"description": "(optional) show this field on the bases of the value in another field. https:\/\/joomla.stackexchange.com\/a\/17682\/2166"
},
"properties9": {
"name": "onchange",
"example": "",
"adjustable": "1",
"description": "(optional) HTML equivalent attribute (JavaScript use)"
}
},
"has_defaults": "1",
"datatype": "TINYINT",
"datalenght": "1",
"datalenght_other": "",
"datadefault": "0",
"datadefault_other": "",
"indexes": "0",
"null_switch": "NOT NULL",
"store": "0",
"guid": "10066262-b6e3-4f82-941e-cbe4f61ddd6c"
}