Create Calendar

This commit is contained in:
Llewellyn 2024-08-23 16:33:57 +00:00
parent 8bf307b2bc
commit 729e01dab8

View File

@ -0,0 +1,166 @@
{
"name": "Calendar",
"short_description": "provides a text box for entry of a date. An icon next to the text box provides a link to a pop-up calendar, which can also be used to enter the date value.",
"description": "The calendar form field type provides a text box for entry of a date. An icon next to the text box provides a link to a pop-up calendar, which can also be used to enter the date value. If the field has a saved value this is shown in the text box. Otherwis",
"properties": {
"properties0": {
"name": "type",
"example": "calendar",
"mandatory": "1",
"description": "(mandatory) must be calendar."
},
"properties1": {
"name": "name",
"example": "date",
"adjustable": "1",
"mandatory": "1",
"description": "(mandatory) is the unique name of the field."
},
"properties2": {
"name": "label",
"example": "Select a date",
"adjustable": "1",
"mandatory": "1",
"translatable": "1",
"description": "(mandatory) (translatable) is the descriptive title of the field."
},
"properties3": {
"name": "default",
"example": "NOW",
"adjustable": "1",
"description": "(optional) is the default date. This must be given in the same format as specified by the format argument. You can put \"NOW\" to have current time."
},
"properties4": {
"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 text box."
},
"properties5": {
"name": "readonly",
"example": "",
"adjustable": "1",
"description": "(optional) is whether the text box is read-only (true or false). If the text box is read-only, the date cannot be changed, but can be selected and copied. No calendar icon will be shown."
},
"properties6": {
"name": "disabled",
"example": "",
"adjustable": "1",
"description": "(optional) is whether the text box is disabled (true or false). If the text box is disabled, the date cannot be changed, selected or copied."
},
"properties7": {
"name": "class",
"example": "",
"adjustable": "1",
"description": "(optional) is a CSS class name for the HTML form field."
},
"properties8": {
"name": "format",
"example": "%d-%m-%Y",
"adjustable": "1",
"description": "(optional) is the date format to be used. This is in the format used by PHP to specify date string formats (see below). If no format argument is given, '%Y-%m-%d' is assumed (giving dates like '2008-04-16')."
},
"properties9": {
"name": "filter",
"example": "",
"adjustable": "1",
"description": "(optional) is time zone to be used. There are two values; server_utc and user_utc. The first one is server time zone and the later is user time zone as configured in global configuration and user information respectively."
},
"properties10": {
"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."
},
"properties23": {
"name": "message",
"example": "Error! Please add some text here.",
"adjustable": "1",
"translatable": "1",
"description": "(optional) The error message that will be displayed instead of the default message."
},
"properties11": {
"name": "size",
"example": "",
"adjustable": "1",
"description": "(optional)"
},
"properties12": {
"name": "required",
"example": "",
"adjustable": "1",
"description": "(optional) The field must be filled before submitting the form."
},
"properties13": {
"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"
},
"properties14": {
"name": "translateformat",
"example": "",
"adjustable": "1",
"description": "(optional): If set to true, the calendar will use a language string to determine the format. The `format` attribute is ignored. If false, the `format` attribute is used (same behaviour as today). (starting with 3.7.0)"
},
"properties15": {
"name": "showtime",
"example": "",
"adjustable": "1",
"description": "(optional): If set to true and translateformat is true, the language key DATE_FORMAT_CALENDAR_DATETIME is used, otherwise DATE_FORMAT_CALENDAR_DATE. (starting with 3.7.0)"
},
"properties16": {
"name": "timeformat",
"example": "",
"adjustable": "1",
"description": "(optional): can be set to 12 (and specify AM or PM) or 24 (starting with 3.7.0)"
},
"properties17": {
"name": "singleheader",
"example": "",
"adjustable": "1",
"description": "(optional): if set to false, the year and the month selection will be set on two separates lines, with independant selection (starting with 3.7.0)"
},
"properties18": {
"name": "todaybutton",
"example": "",
"adjustable": "1",
"description": "(optional): if set to true, a button is added at the bottom of the datePicker to select the date of the current day (starting with 3.7.0)"
},
"properties19": {
"name": "weeknumbers",
"example": "",
"adjustable": "1",
"description": "(optional): if set to true, a column is added at the left of the datePicker to display the number of the week in the current year (starting with 3.7.0)"
},
"properties20": {
"name": "filltable",
"example": "",
"adjustable": "1",
"description": "(optional): if set to true, dates of the previous and next month is added at the top and the bottom of the current month to fill the grid (starting with 3.7.0)"
},
"properties21": {
"name": "minyear",
"example": "",
"adjustable": "1",
"description": "(optional): set a signed integer for a number of years (-10, -2, 0, 7, 12, ...) to define the relative lower limit for the year selection. The user could not select a year before your limit (starting with 3.7.0)"
},
"properties22": {
"name": "maxyear",
"example": "",
"adjustable": "1",
"description": "(optional): set a signed integer for a number of years (-10, -2, 0, 7, 12, ...) to define the relative upper limit for the year selection. The user could not select a year after your limit (starting with 3.7.0)"
}
},
"has_defaults": "1",
"datatype": "DATETIME",
"datalenght": "",
"datalenght_other": "",
"datadefault": "Other",
"datadefault_other": "0000-00-00 00:00:00",
"indexes": "0",
"null_switch": "NOT NULL",
"store": "0",
"guid": "6cf5a33f-cb25-4a58-bfec-7e1511896402"
}