Create Radio

This commit is contained in:
Llewellyn 2024-08-23 17:24:15 +00:00
parent 2182768b32
commit 716f8bd3fc

View File

@ -0,0 +1,106 @@
{
"name": "Radio",
"short_description": "provides radio buttons to select different options.",
"description": "The radio form field type provides radio buttons to select different options. If the field 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": "radio",
"mandatory": "1",
"description": "(mandatory) must be radio."
},
"properties1": {
"name": "name",
"example": "myradiovalue",
"adjustable": "1",
"mandatory": "1",
"description": "(mandatory) is the unique name of the field."
},
"properties2": {
"name": "label",
"example": "Select an option",
"adjustable": "1",
"mandatory": "1",
"translatable": "1",
"description": "(mandatory) (translatable) is the descriptive title of the field."
},
"properties3": {
"name": "description",
"example": "",
"adjustable": "1",
"translatable": "1",
"description": "(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box."
},
"properties4": {
"name": "class",
"example": "btn-group btn-group-yesno",
"adjustable": "1",
"description": "(optional) New in Joomla 3, if set to class=\"btn-group btn-group-yesno\" will show the nice coloured buttons"
},
"properties5": {
"name": "option",
"example": "1|Yes,0|No",
"adjustable": "1",
"description": "(mandatory) set the options of this radio. Separate options with commas and use the pipe symbol to separate value from text."
},
"properties6": {
"name": "default",
"example": "0",
"adjustable": "1",
"description": "(optional) is the default radio button item value."
},
"properties7": {
"name": "message",
"example": "",
"adjustable": "1",
"translatable": "1",
"description": "(optional) (translatable) is text that will be shown as error on validation."
},
"properties8": {
"name": "required",
"example": "",
"adjustable": "1",
"description": "(optional) The field must be filled before submitting the form."
},
"properties9": {
"name": "validate",
"example": "",
"adjustable": "1",
"description": "(optional) The validation method for the form field. This value will determine which method is used to validate the value for a field."
},
"properties10": {
"name": "readonly",
"example": "false",
"adjustable": "1",
"description": "(optional) The field cannot be changed and will automatically inherit the default value"
},
"properties11": {
"name": "disabled",
"example": "false",
"adjustable": "1",
"description": "(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit"
},
"properties12": {
"name": "showon",
"example": "",
"adjustable": "1",
"description": "(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+ https:\/\/joomla.stackexchange.com\/a\/17682\/2166"
},
"properties13": {
"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": "NULL",
"store": "0",
"guid": "b868ed59-4208-4206-8504-95a35a74a11c"
}