• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "name": "calendar",
3  "version": [
4    {
5      "name": "v3.0"
6    }
7  ],
8  "description": [
9    {
10      "name": "The <calendar> component displays a calendar."
11    }
12  ],
13  "attributes": [
14    {
15      "name": "date",
16      "required": false,
17      "description": [
18        {
19          "name": ""
20        }
21      ],
22      "type": "string"
23    },
24    {
25      "name": "offdays",
26      "required": false,
27      "description": [
28        {
29          "name": ""
30        }
31      ],
32      "type": "string"
33    },
34    {
35      "name": "cardcalendar",
36      "required": false,
37      "description": [
38        {
39          "name": ""
40        }
41      ],
42      "type": "enum",
43      "options": [
44        {
45          "name": "true"
46        },
47        {
48          "name": "false"
49        }
50      ]
51    },
52    {
53      "name": "startdayofweek",
54      "required": false,
55      "description": [
56        {
57          "name": ""
58        }
59      ],
60      "type": "string"
61    },
62    {
63      "name": "calendardata",
64      "required": false,
65      "description": [
66        {
67          "name": ""
68        }
69      ],
70      "type": "string"
71    },
72    {
73      "name": "showholiday",
74      "required": false,
75      "description": [
76        {
77          "name": ""
78        }
79      ],
80      "type": "enum",
81      "options": [
82        {
83          "name": "true"
84        },
85        {
86          "name": "false"
87        }
88      ]
89    },
90    {
91      "name": "id",
92      "required": false,
93      "description": [
94        {
95          "name": "Unique ID of a component."
96        }
97      ],
98      "type": "string"
99    },
100    {
101      "name": "style",
102      "required": false,
103      "description": [
104        {
105          "name": "Style declaration of a component."
106        }
107      ],
108      "type": "string"
109    },
110    {
111      "name": "class",
112      "required": false,
113      "description": [
114        {
115          "name": "Style class of a component, which is used to refer to a style table."
116        }
117      ],
118      "type": "string"
119    },
120    {
121      "name": "voicelabel",
122      "required": false,
123      "description": [
124        {
125          "name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
126        }
127      ],
128      "type": "string"
129    },
130    {
131      "name": "subscriptflag",
132      "required": false,
133      "description": [
134        {
135          "name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
136        }
137      ],
138      "type": "enum",
139      "options": [
140        {
141          "name": "auto"
142        },
143        {
144          "name": "on"
145        },
146        {
147          "name": "off"
148        }
149      ]
150    },
151    {
152      "name": "subscriptlabel",
153      "required": false,
154      "description": [
155        {
156          "name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
157        }
158      ],
159      "type": "string"
160    },
161    {
162      "name": "scenelabel",
163      "required": false,
164      "description": [
165        {
166          "name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
167        }
168      ],
169      "type": "enum",
170      "options": [
171        {
172          "name": "video"
173        },
174        {
175          "name": "audio"
176        },
177        {
178          "name": "page"
179        },
180        {
181          "name": "switch"
182        },
183        {
184          "name": "common"
185        }
186      ]
187    },
188    {
189      "name": "accessibilitygroup",
190      "required": false,
191      "description": [
192        {
193          "name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
194        }
195      ],
196      "type": "enum",
197      "options": [
198        {
199          "name": "true"
200        },
201        {
202          "name": "false"
203        }
204      ]
205    },
206    {
207      "name": "accessibilitytext",
208      "required": false,
209      "description": [
210        {
211          "name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
212        }
213      ],
214      "type": "string"
215    },
216    {
217      "name": "accessibilitydescription",
218      "required": false,
219      "description": [
220        {
221          "name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
222        }
223      ],
224      "type": "string"
225    },
226    {
227      "name": "accessibilityimportance",
228      "required": false,
229      "description": [
230        {
231          "name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
232        }
233      ],
234      "type": "string"
235    },
236    {
237      "name": "for",
238      "required": false,
239      "description": [
240        {
241          "name": "Expands the current element based on the configured data list."
242        }
243      ],
244      "type": "string"
245    },
246    {
247      "name": "tid",
248      "required": false,
249      "description": [
250        {
251          "name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
252        }
253      ],
254      "type": "string"
255    },
256    {
257      "name": "if",
258      "required": false,
259      "description": [
260        {
261          "name": "Whether the element is added or removed."
262        }
263      ],
264      "type": "enum",
265      "options": [
266        {
267          "name": "true"
268        },
269        {
270          "name": "false"
271        }
272      ]
273    },
274    {
275      "name": "elif",
276      "required": false,
277      "description": [],
278      "type": "enum",
279      "options": [
280        {
281          "name": "true"
282        },
283        {
284          "name": "false"
285        }
286      ]
287    },
288    {
289      "name": "else",
290      "required": false,
291      "description": [],
292      "type": "string"
293    },
294    {
295      "name": "show",
296      "required": false,
297      "description": [
298        {
299          "name": "Whether the element is displayed or hidden."
300        }
301      ],
302      "type": "enum",
303      "options": [
304        {
305          "name": "true"
306        },
307        {
308          "name": "false"
309        }
310      ]
311    }
312  ],
313  "events": [
314    {
315      "name": "selectedchange",
316      "description": [
317        {
318          "name": ""
319        }
320      ]
321    },
322    {
323      "name": "requestdata",
324      "description": [
325        {
326          "name": ""
327        }
328      ]
329    }
330  ],
331  "supportedSubComponents": false,
332  "supportedSubComponentsRestriction": [],
333  "unSupportSubComponentsRestriction": [],
334  "parentComponentsRestriction": []
335}
336