• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "name": "stack",
3  "version": [
4    {
5      "name": "v3.0"
6    }
7  ],
8  "syscap": [
9    "SystemCapability.ArkUI.ArkUI.Full",
10    "SystemCapability.ArkUI.ArkUI.Lite"
11  ],
12  "description": [
13    {
14      "name": "The <stack> component provides a stack container where child components are successively stacked and the latter one overwrites the previous one."
15    }
16  ],
17  "attributes": [
18    {
19      "name": "shareid",
20      "syscap": [
21        "SystemCapability.ArkUI.ArkUI.Full"
22      ],
23      "required": false,
24      "description": [
25        {
26          "name": "Used for the transition of shared elements and takes effect only when it is configured. This attribute cannot be modified after being set. list-item, image, text, button, label components are supported for the transition of shared elements.",
27          "syscap": [
28            "SystemCapability.ArkUI.ArkUI.Full"
29          ]
30        }
31      ],
32      "type": "string"
33    },
34    {
35      "name": "id",
36      "required": false,
37      "version": [
38        {
39          "name": "v4.0"
40        }
41      ],
42      "description": [
43        {
44          "name": "Unique ID of a component."
45        }
46      ],
47      "type": "string"
48    },
49    {
50      "name": "style",
51      "required": false,
52      "version": [
53        {
54          "name": "v4.0"
55        }
56      ],
57      "description": [
58        {
59          "name": "Style declaration of a component."
60        }
61      ],
62      "type": "string"
63    },
64    {
65      "name": "class",
66      "required": false,
67      "version": [
68        {
69          "name": "v4.0"
70        }
71      ],
72      "description": [
73        {
74          "name": "Style class of a component, which is used to refer to a style table."
75        }
76      ],
77      "type": "string"
78    },
79    {
80      "name": "ref",
81      "required": false,
82      "version": [
83        {
84          "name": "v4.0"
85        }
86      ],
87      "description": [
88        {
89          "name": "Used to register reference information of child elements or child components. The reference information is registered with the parent component on $refs."
90        }
91      ],
92      "type": "string"
93    },
94    {
95      "name": "disabled",
96      "syscap": [
97        "SystemCapability.ArkUI.ArkUI.Full"
98      ],
99      "required": false,
100      "version": [
101        {
102          "name": "v4.0"
103        }
104      ],
105      "description": [
106        {
107          "name": "Whether a component is disabled. If it is disabled, it cannot respond to user interaction.",
108          "syscap": [
109            "SystemCapability.ArkUI.ArkUI.Full"
110          ]
111        }
112      ],
113      "type": "enum",
114      "options": [
115        {
116          "name": "true"
117        },
118        {
119          "name": "false"
120        }
121      ]
122    },
123    {
124      "name": "focusable",
125      "syscap": [
126        "SystemCapability.ArkUI.ArkUI.Full"
127      ],
128      "required": false,
129      "version": [
130        {
131          "name": "v4.0"
132        }
133      ],
134      "description": [
135        {
136          "name": "Whether a component can gain focus. When focusable is set to true, the component can respond to focus events and key events. If a key event or click event is set for the component, this attribute is set to true automatically.",
137          "syscap": [
138            "SystemCapability.ArkUI.ArkUI.Full"
139          ]
140        }
141      ],
142      "type": "enum",
143      "options": [
144        {
145          "name": "true"
146        },
147        {
148          "name": "false"
149        }
150      ]
151    },
152    {
153      "name": "data-*",
154      "syscap": [
155        "SystemCapability.ArkUI.ArkUI.Full"
156      ],
157      "required": false,
158      "version": [
159        {
160          "name": "v4.0"
161        }
162      ],
163      "description": [
164        {
165          "name": "Attribute set for a component to facilitate data storage and reading.",
166          "syscap": [
167            "SystemCapability.ArkUI.ArkUI.Full"
168          ]
169        }
170      ],
171      "type": "string"
172    },
173    {
174      "name": "click-effect",
175      "syscap": [
176        "SystemCapability.ArkUI.ArkUI.Full"
177      ],
178      "required": false,
179      "version": [
180        {
181          "name": "v5.0"
182        }
183      ],
184      "description": [
185        {
186          "name": "Click effect complying with spring physics. Available values are as follows:\nspring-small: The button icon scales down to 90% of its size when it is selected. This is appropriate for small icons.\nspring-medium: The component scales down to 95% of its size when it is selected. This is appropriate for medium-sized components.spring-large: The button icon scales down and up by 95% of its size, which is appropriate to large icons.",
187          "syscap": [
188            "SystemCapability.ArkUI.ArkUI.Full"
189          ]
190        }
191      ],
192      "type": "enum",
193      "options": [
194        {
195          "name": "spring-small"
196        },
197        {
198          "name": "spring-medium"
199        },
200        {
201          "name": "spring-large"
202        }
203      ]
204    },
205    {
206      "name": "voicelabel",
207      "syscap": [
208        "SystemCapability.ArkUI.ArkUI.Full"
209      ],
210      "required": false,
211      "version": [
212        {
213          "name": "v4.0"
214        }
215      ],
216      "description": [
217        {
218          "name": "Voice label. When a voice label is triggered, the click event of the component is triggered.",
219          "syscap": [
220            "SystemCapability.ArkUI.ArkUI.Full"
221          ]
222        }
223      ],
224      "type": "string"
225    },
226    {
227      "name": "subscriptflag",
228      "syscap": [
229        "SystemCapability.ArkUI.ArkUI.Full"
230      ],
231      "required": false,
232      "version": [
233        {
234          "name": "v4.0"
235        }
236      ],
237      "description": [
238        {
239          "name": "Voice subscript switch. Available values are as follows:\nauto: 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.\non: Turn on the voice subscript.\noff: Turn off the voice subscript.If no customized subscript is set, the subscript is automatically accumulated from 1.",
240          "syscap": [
241            "SystemCapability.ArkUI.ArkUI.Full"
242          ]
243        }
244      ],
245      "type": "enum",
246      "options": [
247        {
248          "name": "auto"
249        },
250        {
251          "name": "on"
252        },
253        {
254          "name": "off"
255        }
256      ]
257    },
258    {
259      "name": "subscriptlabel",
260      "syscap": [
261        "SystemCapability.ArkUI.ArkUI.Full"
262      ],
263      "required": false,
264      "version": [
265        {
266          "name": "v4.0"
267        }
268      ],
269      "description": [
270        {
271          "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.",
272          "syscap": [
273            "SystemCapability.ArkUI.ArkUI.Full"
274          ]
275        }
276      ],
277      "type": "string"
278    },
279    {
280      "name": "scenelabel",
281      "syscap": [
282        "SystemCapability.ArkUI.ArkUI.Full"
283      ],
284      "required": false,
285      "version": [
286        {
287          "name": "v4.0"
288        }
289      ],
290      "description": [
291        {
292          "name": "Available values are as follows:\nvideo: 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.\naudio: 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.\npage: 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.\nswitch: 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.",
293          "syscap": [
294            "SystemCapability.ArkUI.ArkUI.Full"
295          ]
296        }
297      ],
298      "type": "enum",
299      "options": [
300        {
301          "name": "video"
302        },
303        {
304          "name": "audio"
305        },
306        {
307          "name": "page"
308        },
309        {
310          "name": "switch"
311        },
312        {
313          "name": "common"
314        }
315      ]
316    },
317    {
318      "name": "accessibilitygroup",
319      "syscap": [
320        "SystemCapability.ArkUI.ArkUI.Full"
321      ],
322      "required": false,
323      "version": [
324        {
325          "name": "v4.0"
326        }
327      ],
328      "description": [
329        {
330          "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.",
331          "syscap": [
332            "SystemCapability.ArkUI.ArkUI.Full"
333          ]
334        }
335      ],
336      "type": "enum",
337      "options": [
338        {
339          "name": "true"
340        },
341        {
342          "name": "false"
343        }
344      ]
345    },
346    {
347      "name": "accessibilitytext",
348      "syscap": [
349        "SystemCapability.ArkUI.ArkUI.Full"
350      ],
351      "required": false,
352      "version": [
353        {
354          "name": "v4.0"
355        }
356      ],
357      "description": [
358        {
359          "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.",
360          "syscap": [
361            "SystemCapability.ArkUI.ArkUI.Full"
362          ]
363        }
364      ],
365      "type": "string"
366    },
367    {
368      "name": "accessibilitydescription",
369      "syscap": [
370        "SystemCapability.ArkUI.ArkUI.Full"
371      ],
372      "required": false,
373      "version": [
374        {
375          "name": "v4.0"
376        }
377      ],
378      "description": [
379        {
380          "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.",
381          "syscap": [
382            "SystemCapability.ArkUI.ArkUI.Full"
383          ]
384        }
385      ],
386      "type": "string"
387    },
388    {
389      "name": "accessibilityimportance",
390      "syscap": [
391        "SystemCapability.ArkUI.ArkUI.Full"
392      ],
393      "required": false,
394      "version": [
395        {
396          "name": "v4.0"
397        }
398      ],
399      "description": [
400        {
401          "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.\nyes: The current component is selectable for the accessibility service.no: The current component is not selectable for the accessibility service.",
402          "syscap": [
403            "SystemCapability.ArkUI.ArkUI.Full"
404          ]
405        }
406      ],
407      "type": "string"
408    },
409    {
410      "name": "for",
411      "required": false,
412      "version": [
413        {
414          "name": "v4.0"
415        }
416      ],
417      "description": [
418        {
419          "name": "Expands the current element based on the configured data list."
420        }
421      ],
422      "type": "string"
423    },
424    {
425      "name": "tid",
426      "required": false,
427      "version": [
428        {
429          "name": "v4.0"
430        }
431      ],
432      "description": [
433        {
434          "name": "The tid attribute accelerates the for loop and improves the re-rendering efficiency when data in a loop changes.\nThe 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 ID."
435        }
436      ],
437      "type": "string"
438    },
439    {
440      "name": "if",
441      "required": false,
442      "version": [
443        {
444          "name": "v4.0"
445        }
446      ],
447      "description": [
448        {
449          "name": "Whether the element is added or removed."
450        }
451      ],
452      "type": "enum",
453      "options": [
454        {
455          "name": "true"
456        },
457        {
458          "name": "false"
459        }
460      ]
461    },
462    {
463      "name": "dir",
464      "syscap": [
465        "SystemCapability.ArkUI.ArkUI.Full"
466      ],
467      "version": [
468        {
469          "name": "v6.0"
470        }
471      ],
472      "required": false,
473      "description": [
474        {
475          "name": "Sets the element layout mode. The rtl, ltr, and auto attributes can be set.",
476          "syscap": [
477            "SystemCapability.ArkUI.ArkUI.Full"
478          ]
479        }
480      ],
481      "type": "enum",
482      "options": [
483        {
484          "name": "ltr"
485        },
486        {
487          "name": "rtl"
488        },
489        {
490          "name": "auto"
491        }
492      ]
493    },
494    {
495      "name": "elif",
496      "required": false,
497      "version": [
498        {
499          "name": "v4.0"
500        }
501      ],
502      "description": [],
503      "type": "enum",
504      "options": [
505        {
506          "name": "true"
507        },
508        {
509          "name": "false"
510        }
511      ]
512    },
513    {
514      "name": "else",
515      "required": false,
516      "version": [
517        {
518          "name": "v4.0"
519        }
520      ],
521      "description": [],
522      "type": "string"
523    },
524    {
525      "name": "show",
526      "required": false,
527      "version": [
528        {
529          "name": "v4.0"
530        }
531      ],
532      "description": [
533        {
534          "name": "Whether the element is displayed or hidden."
535        }
536      ],
537      "type": "enum",
538      "options": [
539        {
540          "name": "true"
541        },
542        {
543          "name": "false"
544        }
545      ]
546    }
547  ],
548  "events": [
549    {
550      "name": "touchstart",
551      "syscap": [
552        "SystemCapability.ArkUI.ArkUI.Full"
553      ],
554      "version": [
555        {
556          "name": "v4.0"
557        }
558      ],
559      "description": [
560        {
561          "name": "The tapping starts",
562          "syscap": [
563            "SystemCapability.ArkUI.ArkUI.Full"
564          ]
565        }
566      ]
567    },
568    {
569      "name": "touchmove",
570      "syscap": [
571        "SystemCapability.ArkUI.ArkUI.Full"
572      ],
573      "version": [
574        {
575          "name": "v4.0"
576        }
577      ],
578      "description": [
579        {
580          "name": "The tapping moves.",
581          "syscap": [
582            "SystemCapability.ArkUI.ArkUI.Full"
583          ]
584        }
585      ]
586    },
587    {
588      "name": "touchcancel",
589      "syscap": [
590        "SystemCapability.ArkUI.ArkUI.Full"
591      ],
592      "version": [
593        {
594          "name": "v4.0"
595        }
596      ],
597      "description": [
598        {
599          "name": "The tapping is interrupted.",
600          "syscap": [
601            "SystemCapability.ArkUI.ArkUI.Full"
602          ]
603        }
604      ]
605    },
606    {
607      "name": "touchend",
608      "syscap": [
609        "SystemCapability.ArkUI.ArkUI.Full"
610      ],
611      "version": [
612        {
613          "name": "v4.0"
614        }
615      ],
616      "description": [
617        {
618          "name": "The tapping ends.",
619          "syscap": [
620            "SystemCapability.ArkUI.ArkUI.Full"
621          ]
622        }
623      ]
624    },
625    {
626      "name": "click",
627      "version": [
628        {
629          "name": "v4.0"
630        }
631      ],
632      "description": [
633        {
634          "name": "A component is clicked."
635        }
636      ]
637    },
638    {
639      "name": "longpress",
640      "version": [
641        {
642          "name": "v4.0"
643        }
644      ],
645      "description": [
646        {
647          "name": "A component is long pressed."
648        }
649      ]
650    },
651    {
652      "name": "doubleclick",
653      "version": [
654        {
655          "name": "v4.0"
656        }
657      ],
658      "description": [
659        {
660          "name": "A component is double clicked."
661        }
662      ]
663    },
664    {
665      "name": "pinchstart",
666      "version": [
667        {
668          "name": "v4.0"
669        }
670      ],
671      "description": [
672        {
673          "name": "The pinch starts."
674        }
675      ]
676    },
677    {
678      "name": "pinchupdate",
679      "version": [
680        {
681          "name": "v4.0"
682        }
683      ],
684      "description": [
685        {
686          "name": "The pinch updates."
687        }
688      ]
689    },
690    {
691      "name": "pinchend",
692      "version": [
693        {
694          "name": "v4.0"
695        }
696      ],
697      "description": [
698        {
699          "name": "The pinch ends."
700        }
701      ]
702    },
703    {
704      "name": "pinchcancel",
705      "version": [
706        {
707          "name": "v4.0"
708        }
709      ],
710      "description": [
711        {
712          "name": "The pinch is interrupted."
713        }
714      ]
715    },
716    {
717      "name": "drag",
718      "version": [
719        {
720          "name": "v7.0"
721        }
722      ],
723      "description": [
724        {
725          "name": "The duration of drag."
726        }
727      ]
728    },
729    {
730      "name": "dragstart",
731      "version": [
732        {
733          "name": "v7.0"
734        }
735      ],
736      "description": [
737        {
738          "name": "The drag starts."
739        }
740      ]
741    },
742    {
743      "name": "dragend",
744      "version": [
745        {
746          "name": "v7.0"
747        }
748      ],
749      "description": [
750        {
751          "name": "The drag ends."
752        }
753      ]
754    },
755    {
756      "name": "dragenter",
757      "version": [
758        {
759          "name": "v7.0"
760        }
761      ],
762      "description": [
763        {
764          "name": "The drag enters."
765        }
766      ]
767    },
768    {
769      "name": "dragover",
770      "version": [
771        {
772          "name": "v7.0"
773        }
774      ],
775      "description": [
776        {
777          "name": "The drag overs."
778        }
779      ]
780    },
781    {
782      "name": "dragleave",
783      "version": [
784        {
785          "name": "v7.0"
786        }
787      ],
788      "description": [
789        {
790          "name": "The drag leaves."
791        }
792      ]
793    },
794    {
795      "name": "drop",
796      "version": [
797        {
798          "name": "v7.0"
799        }
800      ],
801      "description": [
802        {
803          "name": "The drag drops."
804        }
805      ]
806    },
807    {
808      "name": "focus",
809      "syscap": [
810        "SystemCapability.ArkUI.ArkUI.Full"
811      ],
812      "version": [
813        {
814          "name": "v4.0"
815        }
816      ],
817      "description": [
818        {
819          "name": "A component gains focus. The <span> component cannot gain focus.",
820          "syscap": [
821            "SystemCapability.ArkUI.ArkUI.Full"
822          ]
823        }
824      ]
825    },
826    {
827      "name": "blur",
828      "syscap": [
829        "SystemCapability.ArkUI.ArkUI.Full"
830      ],
831      "version": [
832        {
833          "name": "v4.0"
834        }
835      ],
836      "description": [
837        {
838          "name": "A component loses focus. The <span> component cannot lose focus.",
839          "syscap": [
840            "SystemCapability.ArkUI.ArkUI.Full"
841          ]
842        }
843      ]
844    },
845    {
846      "name": "key",
847      "syscap": [
848        "SystemCapability.ArkUI.ArkUI.Full"
849      ],
850      "version": [
851        {
852          "name": "v4.0"
853        }
854      ],
855      "description": [
856        {
857          "name": "A user presses a key on the remote control. Available return values are as follows:\ntrue: returned if the page processes the key event.\nfalse: returned if the default logic is used to process the key event.\nIf no value is returned, false is used as the return value.",
858          "syscap": [
859            "SystemCapability.ArkUI.ArkUI.Full"
860          ]
861        }
862      ]
863    },
864    {
865      "name": "swipe",
866      "version": [
867        {
868          "name": "v5.0"
869        }
870      ],
871      "description": [
872        {
873          "name": "A user quickly swipes on a component."
874        }
875      ]
876    },
877    {
878      "name": "attached",
879      "syscap": [
880        "SystemCapability.ArkUI.ArkUI.Full"
881      ],
882      "version": [
883        {
884          "name": "v6.0"
885        }
886      ],
887      "description": [
888        {
889          "name": "The current component is mounted to the render tree.",
890          "syscap": [
891            "SystemCapability.ArkUI.ArkUI.Full"
892          ]
893        }
894      ]
895    },
896    {
897      "name": "detached",
898      "syscap": [
899        "SystemCapability.ArkUI.ArkUI.Full"
900      ],
901      "version": [
902        {
903          "name": "v6.0"
904        }
905      ],
906      "description": [
907        {
908          "name": "The current component is removed from the render tree.",
909          "syscap": [
910            "SystemCapability.ArkUI.ArkUI.Full"
911          ]
912        }
913      ]
914    },
915    {
916      "name": "accessibility",
917      "syscap": [
918        "SystemCapability.ArkUI.ArkUI.Full"
919      ],
920      "version": [
921        {
922          "name": "v4.0"
923        }
924      ],
925      "description": [
926        {
927          "name": "Event dispatched by the accessibility service.",
928          "syscap": [
929            "SystemCapability.ArkUI.ArkUI.Full"
930          ]
931        }
932      ]
933    }
934  ],
935  "supportedSubComponents": true,
936  "supportedSubComponentsRestriction": [],
937  "unSupportSubComponentsRestriction": [],
938  "parentComponentsRestriction": []
939}