• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 * @kit ArkUI
19 */
20
21/*** if arkts 1.2 */
22import { EdgeEffectOptions, NestedScrollOptions, ItemDragInfo, ScrollableCommonMethod, Optional, CommonMethod, OnWillScrollCallback, OnScrollCallback, OnItemDragStartCallback } from './common';
23import { Length, Resource } from './units';
24import { Scroller, OnScrollFrameBeginCallback } from './scroll';
25import { ScrollState } from './list';
26import { BarState, Color, EdgeEffect } from './enums';
27/*** endif */
28
29/**
30 * The options to help grid layout
31 *
32 * @interface GridLayoutOptions
33 * @syscap SystemCapability.ArkUI.ArkUI.Full
34 * @crossplatform
35 * @since 10
36 */
37/**
38 * The options to help grid layout
39 *
40 * @interface GridLayoutOptions
41 * @syscap SystemCapability.ArkUI.ArkUI.Full
42 * @crossplatform
43 * @atomicservice
44 * @since arkts {'1.1':'11','1.2':'20'}
45 * @arkts 1.1&1.2
46 */
47declare interface GridLayoutOptions {
48  /**
49   * The size of most grid items, in [rows, columns], generally [1, 1]
50   *
51   * @type { [number, number] } regularSize
52   * @syscap SystemCapability.ArkUI.ArkUI.Full
53   * @crossplatform
54   * @since 10
55   */
56  /**
57   * The size of most grid items, in [rows, columns], generally [1, 1]
58   *
59   * @type { [number, number] } regularSize
60   * @syscap SystemCapability.ArkUI.ArkUI.Full
61   * @crossplatform
62   * @atomicservice
63   * @since arkts {'1.1':'11','1.2':'20'}
64   * @arkts 1.1&1.2
65   */
66  regularSize: [number, number];
67
68  /**
69   * The indexes of grid items with irregular size.
70   *
71   * @type { ?number[] } irregularIndexes
72   * @default number[] no irregular grid item
73   * @syscap SystemCapability.ArkUI.ArkUI.Full
74   * @crossplatform
75   * @since 10
76   */
77  /**
78   * The indexes of grid items with irregular size.
79   *
80   * @type { ?number[] } irregularIndexes
81   * @default number[] no irregular grid item
82   * @syscap SystemCapability.ArkUI.ArkUI.Full
83   * @crossplatform
84   * @atomicservice
85   * @since arkts {'1.1':'11','1.2':'20'}
86   * @arkts 1.1&1.2
87   */
88  irregularIndexes?: number[];
89
90  /**
91   * Called to return the size of the irregular grid items with the specified index in [rows, columns].
92   *
93   * @type { ?function } onGetIrregularSizeByIndex,
94   * all irregular grid items will occupy an entire line if not set
95   * @syscap SystemCapability.ArkUI.ArkUI.Full
96   * @crossplatform
97   * @since 10
98   */
99  /**
100   * Called to return the size of the irregular grid items with the specified index in [rows, columns].
101   *
102   * @type { ?function } onGetIrregularSizeByIndex,
103   * all irregular grid items will occupy an entire line if not set
104   * @syscap SystemCapability.ArkUI.ArkUI.Full
105   * @crossplatform
106   * @atomicservice
107   * @since arkts {'1.1':'11','1.2':'20'}
108   * @arkts 1.1&1.2
109   */
110  onGetIrregularSizeByIndex?: (index: number) => [number, number]
111
112  /**
113   * Called to return the size of the grid items with the specified index in
114   * [rowStart, columnStart, rowSpan, columnSpan].
115   *
116   * @type { ?function } onGetRectByIndex
117   * @syscap SystemCapability.ArkUI.ArkUI.Full
118   * @crossplatform
119   * @since 11
120   */
121  /**
122   * Called to return the size of the grid items with the specified index in
123   * [rowStart, columnStart, rowSpan, columnSpan].
124   *
125   * @type { ?function } onGetRectByIndex
126   * @syscap SystemCapability.ArkUI.ArkUI.Full
127   * @crossplatform
128   * @atomicservice
129   * @since arkts {'1.1':'12','1.2':'20'}
130   * @arkts 1.1&1.2
131   */
132  onGetRectByIndex?: (index: number) => [number, number, number, number]
133}
134
135/**
136 * Defines the grid interface.
137 *
138 * @interface GridInterface
139 * @syscap SystemCapability.ArkUI.ArkUI.Full
140 * @since 7
141 */
142/**
143 * Defines the grid interface.
144 *
145 * @interface GridInterface
146 * @syscap SystemCapability.ArkUI.ArkUI.Full
147 * @crossplatform
148 * @since 10
149 */
150/**
151 * Defines the grid interface.
152 *
153 * @interface GridInterface
154 * @syscap SystemCapability.ArkUI.ArkUI.Full
155 * @crossplatform
156 * @atomicservice
157 * @since arkts {'1.1':'11','1.2':'20'}
158 * @arkts 1.1&1.2
159 */
160interface GridInterface {
161  /**
162   * Grid is returned when the parameter is transferred.
163   *
164   * @param { Scroller } scroller
165   * @returns { GridAttribute }
166   * @syscap SystemCapability.ArkUI.ArkUI.Full
167   * @since 7
168   */
169  /**
170   * Grid is returned when the parameter is transferred.
171   *
172   * @param { Scroller } scroller - Controller bound to the grid
173   * @param { GridLayoutOptions } layoutOptions - The options to help grid layout
174   * @returns { GridAttribute } The attribute of the grid
175   * @syscap SystemCapability.ArkUI.ArkUI.Full
176   * @crossplatform
177   * @since 10
178   */
179  /**
180   * Grid is returned when the parameter is transferred.
181   *
182   * @param { Scroller } scroller - Controller bound to the grid
183   * @param { GridLayoutOptions } layoutOptions - The options to help grid layout
184   * @returns { GridAttribute } The attribute of the grid
185   * @syscap SystemCapability.ArkUI.ArkUI.Full
186   * @crossplatform
187   * @atomicservice
188   * @since arkts {'1.1':'11','1.2':'20'}
189   * @arkts 1.1&1.2
190   */
191  (scroller?: Scroller, layoutOptions?: GridLayoutOptions): GridAttribute;
192}
193
194/**
195 * The enum of property layoutDirection
196 *
197 * @enum { number }
198 * @syscap SystemCapability.ArkUI.ArkUI.Full
199 * @since 8
200 */
201/**
202 * The enum of property layoutDirection
203 *
204 * @enum { number }
205 * @syscap SystemCapability.ArkUI.ArkUI.Full
206 * @crossplatform
207 * @since 10
208 */
209/**
210 * The enum of property layoutDirection
211 *
212 * @enum { number }
213 * @syscap SystemCapability.ArkUI.ArkUI.Full
214 * @crossplatform
215 * @atomicservice
216 * @since arkts {'1.1':'11','1.2':'20'}
217 * @arkts 1.1&1.2
218 */
219declare enum GridDirection {
220  /**
221   * The row direction.
222   *
223   * @syscap SystemCapability.ArkUI.ArkUI.Full
224   * @since 8
225   */
226  /**
227   * The row direction.
228   *
229   * @syscap SystemCapability.ArkUI.ArkUI.Full
230   * @crossplatform
231   * @since 10
232   */
233  /**
234   * The row direction.
235   *
236   * @syscap SystemCapability.ArkUI.ArkUI.Full
237   * @crossplatform
238   * @atomicservice
239   * @since arkts {'1.1':'11','1.2':'20'}
240   * @arkts 1.1&1.2
241   */
242  Row,
243
244  /**
245   * The column direction.
246   *
247   * @syscap SystemCapability.ArkUI.ArkUI.Full
248   * @since 8
249   */
250  /**
251   * The column direction.
252   *
253   * @syscap SystemCapability.ArkUI.ArkUI.Full
254   * @crossplatform
255   * @since 10
256   */
257  /**
258   * The column direction.
259   *
260   * @syscap SystemCapability.ArkUI.ArkUI.Full
261   * @crossplatform
262   * @atomicservice
263   * @since arkts {'1.1':'11','1.2':'20'}
264   * @arkts 1.1&1.2
265   */
266  Column,
267
268  /**
269   * The row reverse direction.
270   *
271   * @syscap SystemCapability.ArkUI.ArkUI.Full
272   * @since 8
273   */
274  /**
275   * The row reverse direction.
276   *
277   * @syscap SystemCapability.ArkUI.ArkUI.Full
278   * @crossplatform
279   * @since 10
280   */
281  /**
282   * The row reverse direction.
283   *
284   * @syscap SystemCapability.ArkUI.ArkUI.Full
285   * @crossplatform
286   * @atomicservice
287   * @since arkts {'1.1':'11','1.2':'20'}
288   * @arkts 1.1&1.2
289   */
290  RowReverse,
291
292  /**
293   * The column reverse direction.
294   *
295   * @syscap SystemCapability.ArkUI.ArkUI.Full
296   * @since 8
297   */
298  /**
299   * The column reverse direction.
300   *
301   * @syscap SystemCapability.ArkUI.ArkUI.Full
302   * @crossplatform
303   * @since 10
304   */
305  /**
306   * The column reverse direction.
307   *
308   * @syscap SystemCapability.ArkUI.ArkUI.Full
309   * @crossplatform
310   * @atomicservice
311   * @since arkts {'1.1':'11','1.2':'20'}
312   * @arkts 1.1&1.2
313   */
314  ColumnReverse,
315}
316
317/**
318 * Declare grid item alignment status
319 *
320 * @enum { number }
321 * @syscap SystemCapability.ArkUI.ArkUI.Full
322 * @crossplatform
323 * @atomicservice
324 * @since arkts {'1.1':'12','1.2':'20'}
325 * @arkts 1.1&1.2
326 */
327declare enum GridItemAlignment {
328
329  /**
330   * Use the default alignment of the Grid.
331   *
332   * @syscap SystemCapability.ArkUI.ArkUI.Full
333   * @crossplatform
334   * @atomicservice
335   * @since arkts {'1.1':'12','1.2':'20'}
336   * @arkts 1.1&1.2
337   */
338  DEFAULT = 0,
339
340  /**
341   * The height of the tallest grid item in the current line
342   * will be used as the height for the other items in the same line
343   *
344   * @syscap SystemCapability.ArkUI.ArkUI.Full
345   * @crossplatform
346   * @atomicservice
347   * @since arkts {'1.1':'12','1.2':'20'}
348   * @arkts 1.1&1.2
349   */
350  STRETCH = 1,
351}
352
353/**
354 * The attribute of scrollbar to compute scrollbar position and height.
355 *
356 * @interface ComputedBarAttribute
357 * @syscap SystemCapability.ArkUI.ArkUI.Full
358 * @crossplatform
359 * @since 10
360 */
361/**
362 * The attribute of scrollbar to compute scrollbar position and height.
363 *
364 * @interface ComputedBarAttribute
365 * @syscap SystemCapability.ArkUI.ArkUI.Full
366 * @crossplatform
367 * @atomicservice
368 * @since arkts {'1.1':'11','1.2':'20'}
369 * @arkts 1.1&1.2
370 */
371declare interface ComputedBarAttribute {
372  /**
373   * The offset of the grid.
374   *
375   * @type { number }
376   * @syscap SystemCapability.ArkUI.ArkUI.Full
377   * @crossplatform
378   * @since 10
379   */
380  /**
381   * The offset of the grid.
382   *
383   * @type { number }
384   * @syscap SystemCapability.ArkUI.ArkUI.Full
385   * @crossplatform
386   * @atomicservice
387   * @since arkts {'1.1':'11','1.2':'20'}
388   * @arkts 1.1&1.2
389   */
390  totalOffset: number;
391
392  /**
393   * The range of the grid.
394   *
395   * @type { number }
396   * @syscap SystemCapability.ArkUI.ArkUI.Full
397   * @crossplatform
398   * @since 10
399   */
400  /**
401   * The range of the grid.
402   *
403   * @type { number }
404   * @syscap SystemCapability.ArkUI.ArkUI.Full
405   * @crossplatform
406   * @atomicservice
407   * @since arkts {'1.1':'11','1.2':'20'}
408   * @arkts 1.1&1.2
409   */
410  totalLength: number;
411}
412
413/**
414 * Defines a UIGridEvent which is used to set event to target component.
415 *
416 * @extends UIScrollableCommonEvent
417 * @interface UIGridEvent
418 * @syscap SystemCapability.ArkUI.ArkUI.Full
419 * @crossplatform
420 * @atomicservice
421 * @since 19
422 */
423declare interface UIGridEvent extends UIScrollableCommonEvent {
424  /**
425   * Set or reset the callback which is triggered when the Grid will scroll.
426   *
427   * @param { OnWillScrollCallback | undefined } callback - callback function, triggered when the Grid will scroll.
428   * @syscap SystemCapability.ArkUI.ArkUI.Full
429   * @crossplatform
430   * @atomicservice
431   * @since 19
432   */
433  setOnWillScroll(callback: OnWillScrollCallback | undefined): void;
434
435  /**
436   * Set or reset the callback which is triggered when the Grid did scroll.
437   *
438   * @param { OnScrollCallback | undefined } callback - callback function, triggered when the Grid did scroll.
439   * @syscap SystemCapability.ArkUI.ArkUI.Full
440   * @crossplatform
441   * @atomicservice
442   * @since 19
443   */
444  setOnDidScroll(callback: OnScrollCallback | undefined): void;
445
446  /**
447   * Set or reset the callback which is triggered when the start and end positions of the display change.
448   *
449   * @param { OnGridScrollIndexCallback | undefined } callback - callback function, triggered when start or
450   *     end positions of the display change.
451   * @syscap SystemCapability.ArkUI.ArkUI.Full
452   * @crossplatform
453   * @atomicservice
454   * @since 19
455   */
456  setOnScrollIndex(callback: OnGridScrollIndexCallback | undefined): void;
457}
458
459/**
460 * Defines the callback type used in onScrollIndex.
461 *
462 * @typedef {function} OnGridScrollIndexCallback
463 * @param {number} first - the first index in visible content.
464 * @param {number} last - the last index in visible content.
465 * @syscap SystemCapability.ArkUI.ArkUI.Full
466 * @crossplatform
467 * @atomicservice
468 * @since 19
469 */
470declare type OnGridScrollIndexCallback = (first: number, last: number) => void;
471
472/**
473 * Defines the grid attribute functions.
474 *
475 * @extends CommonMethod<GridAttribute>
476 * @syscap SystemCapability.ArkUI.ArkUI.Full
477 * @since 7
478 */
479/**
480 * Defines the grid attribute functions.
481 *
482 * @extends CommonMethod<GridAttribute>
483 * @syscap SystemCapability.ArkUI.ArkUI.Full
484 * @crossplatform
485 * @since 10
486 */
487/**
488 * Defines the grid attribute functions.
489 *
490 * @extends ScrollableCommonMethod<GridAttribute>
491 * @syscap SystemCapability.ArkUI.ArkUI.Full
492 * @crossplatform
493 * @atomicservice
494 * @since arkts {'1.1':'11','1.2':'20'}
495 * @arkts 1.1&1.2
496 */
497declare class GridAttribute extends ScrollableCommonMethod<GridAttribute> {
498  /**
499   * This parameter specifies the number of columns in the current grid layout.
500   *
501   * @param { string } value
502   * @returns { GridAttribute }
503   * @syscap SystemCapability.ArkUI.ArkUI.Full
504   * @since 7
505   */
506  /**
507   * This parameter specifies the number of columns in the current grid layout.
508   *
509   * @param { string } value
510   * @returns { GridAttribute }
511   * @syscap SystemCapability.ArkUI.ArkUI.Full
512   * @crossplatform
513   * @since 10
514   */
515  /**
516   * This parameter specifies the number of columns in the current grid layout.
517   *
518   * @param { string } value
519   * @returns { GridAttribute }
520   * @syscap SystemCapability.ArkUI.ArkUI.Full
521   * @crossplatform
522   * @atomicservice
523   * @since arkts {'1.1':'11','1.2':'20'}
524   * @arkts 1.1&1.2
525   */
526  columnsTemplate(value: string): GridAttribute;
527
528  /**
529   * Lets you set the number of rows in the current grid layout,
530   *
531   * @param { string } value
532   * @returns { GridAttribute }
533   * @syscap SystemCapability.ArkUI.ArkUI.Full
534   * @since 7
535   */
536  /**
537   * Lets you set the number of rows in the current grid layout,
538   *
539   * @param { string } value
540   * @returns { GridAttribute }
541   * @syscap SystemCapability.ArkUI.ArkUI.Full
542   * @crossplatform
543   * @since 10
544   */
545  /**
546   * Lets you set the number of rows in the current grid layout,
547   *
548   * @param { string } value
549   * @returns { GridAttribute }
550   * @syscap SystemCapability.ArkUI.ArkUI.Full
551   * @crossplatform
552   * @atomicservice
553   * @since arkts {'1.1':'11','1.2':'20'}
554   * @arkts 1.1&1.2
555   */
556  rowsTemplate(value: string): GridAttribute;
557
558  /**
559   * Allows you to set the spacing between columns.
560   *
561   * @param { Length } value
562   * @returns { GridAttribute }
563   * @syscap SystemCapability.ArkUI.ArkUI.Full
564   * @since 7
565   */
566  /**
567   * Allows you to set the spacing between columns.
568   *
569   * @param { Length } value
570   * @returns { GridAttribute }
571   * @syscap SystemCapability.ArkUI.ArkUI.Full
572   * @crossplatform
573   * @since 10
574   */
575  /**
576   * Allows you to set the spacing between columns.
577   *
578   * @param { Length } value
579   * @returns { GridAttribute }
580   * @syscap SystemCapability.ArkUI.ArkUI.Full
581   * @crossplatform
582   * @atomicservice
583   * @since arkts {'1.1':'11','1.2':'20'}
584   * @arkts 1.1&1.2
585   */
586  columnsGap(value: Length): GridAttribute;
587
588  /**
589   * Lets you set the spacing between rows.
590   *
591   * @param { Length } value
592   * @returns { GridAttribute }
593   * @syscap SystemCapability.ArkUI.ArkUI.Full
594   * @since 7
595   */
596  /**
597   * Lets you set the spacing between rows.
598   *
599   * @param { Length } value
600   * @returns { GridAttribute }
601   * @syscap SystemCapability.ArkUI.ArkUI.Full
602   * @crossplatform
603   * @since 10
604   */
605  /**
606   * Lets you set the spacing between rows.
607   *
608   * @param { Length } value
609   * @returns { GridAttribute }
610   * @syscap SystemCapability.ArkUI.ArkUI.Full
611   * @crossplatform
612   * @atomicservice
613   * @since arkts {'1.1':'11','1.2':'20'}
614   * @arkts 1.1&1.2
615   */
616  rowsGap(value: Length): GridAttribute;
617
618  /**
619   * This parameter specifies the width of the scroll bar.
620   *
621   * @param { number | string } value
622   * @returns { GridAttribute }
623   * @syscap SystemCapability.ArkUI.ArkUI.Full
624   * @since 7
625   */
626  /**
627   * This parameter specifies the width of the scroll bar.
628   *
629   * @param { number | string } value
630   * @returns { GridAttribute }
631   * @syscap SystemCapability.ArkUI.ArkUI.Full
632   * @crossplatform
633   * @since 10
634   */
635  /**
636   * This parameter specifies the width of the scroll bar.
637   *
638   * @param { number | string } value
639   * @returns { GridAttribute }
640   * @syscap SystemCapability.ArkUI.ArkUI.Full
641   * @crossplatform
642   * @atomicservice
643   * @since 11
644   */
645  scrollBarWidth(value: number | string): GridAttribute;
646
647  /**
648   * Sets the color of the scroll bar.
649   *
650   * @param { Color | number | string } value
651   * @returns { GridAttribute }
652   * @syscap SystemCapability.ArkUI.ArkUI.Full
653   * @since 7
654   */
655  /**
656   * Sets the color of the scroll bar.
657   *
658   * @param { Color | number | string } value
659   * @returns { GridAttribute }
660   * @syscap SystemCapability.ArkUI.ArkUI.Full
661   * @crossplatform
662   * @since 10
663   */
664  /**
665   * Sets the color of the scroll bar.
666   *
667   * @param { Color | number | string } value
668   * @returns { GridAttribute }
669   * @syscap SystemCapability.ArkUI.ArkUI.Full
670   * @crossplatform
671   * @atomicservice
672   * @since 11
673   */
674  scrollBarColor(value: Color | number | string): GridAttribute;
675
676  /**
677   * Lets you set the spacing between rows.
678   *
679   * @param { BarState } value
680   * @returns { GridAttribute }
681   * @syscap SystemCapability.ArkUI.ArkUI.Full
682   * @since 7
683   */
684  /**
685   * Lets you set the spacing between rows.
686   *
687   * @param { BarState } value
688   * @returns { GridAttribute }
689   * @syscap SystemCapability.ArkUI.ArkUI.Full
690   * @crossplatform
691   * @since 10
692   */
693  /**
694   * Lets you set the spacing between rows.
695   *
696   * @param { BarState } value
697   * @returns { GridAttribute }
698   * @syscap SystemCapability.ArkUI.ArkUI.Full
699   * @crossplatform
700   * @atomicservice
701   * @since 11
702   */
703  scrollBar(value: BarState): GridAttribute;
704
705  /**
706   * Set scrollbar position.
707   *
708   * @param { function } event - callback of grid scroll,
709   * index is the current first displayed item, offset is the grid offset,
710   * return ComputedBarAttribute to update scrollbar position and height.
711   * @returns { GridAttribute }
712   * @syscap SystemCapability.ArkUI.ArkUI.Full
713   * @crossplatform
714   * @since 10
715   */
716  /**
717   * Set scrollbar position.
718   *
719   * @param { function } event - callback of grid scroll,
720   * index is the current first displayed item, offset is the grid offset,
721   * return ComputedBarAttribute to update scrollbar position and height.
722   * @returns { GridAttribute }
723   * @syscap SystemCapability.ArkUI.ArkUI.Full
724   * @crossplatform
725   * @atomicservice
726   * @since arkts {'1.1':'11','1.2':'20'}
727   * @arkts 1.1&1.2
728   */
729  onScrollBarUpdate(event: (index: number, offset: number) => ComputedBarAttribute): GridAttribute;
730
731  /**
732   * Called when the first item displayed in the grid changes.
733   *
734   * @param { function } event - of grid scroll,
735   * first is the index of the first item of the grid.
736   * @returns { GridAttribute }
737   * @syscap SystemCapability.ArkUI.ArkUI.Full
738   * @since 7
739   */
740  /**
741   * Called when the first or last item displayed in the grid changes.
742   *
743   * @param { function } event - of grid scroll,
744   * first is the index of the first item displayed in the grid,
745   * last is the index of the last item displayed in the grid.
746   * @returns { GridAttribute }
747   * @syscap SystemCapability.ArkUI.ArkUI.Full
748   * @crossplatform
749   * @since 10
750   */
751  /**
752   * Called when the first or last item displayed in the grid changes.
753   *
754   * @param { function } event - of grid scroll,
755   * first is the index of the first item displayed in the grid,
756   * last is the index of the last item displayed in the grid.
757   * @returns { GridAttribute }
758   * @syscap SystemCapability.ArkUI.ArkUI.Full
759   * @crossplatform
760   * @atomicservice
761   * @since arkts {'1.1':'11','1.2':'20'}
762   * @arkts 1.1&1.2
763   */
764  onScrollIndex(event: (first: number, last: number) => void): GridAttribute;
765
766  /**
767   * cached Count
768   *
769   * @param { number } value
770   * @returns { GridAttribute }
771   * @syscap SystemCapability.ArkUI.ArkUI.Full
772   * @since 7
773   */
774  /**
775   * cached Count
776   *
777   * @param { number } value
778   * @returns { GridAttribute }
779   * @syscap SystemCapability.ArkUI.ArkUI.Full
780   * @crossplatform
781   * @since 10
782   */
783  /**
784   * cached Count
785   *
786   * @param { number } value
787   * @returns { GridAttribute }
788   * @syscap SystemCapability.ArkUI.ArkUI.Full
789   * @crossplatform
790   * @atomicservice
791   * @since arkts {'1.1':'11','1.2':'20'}
792   * @arkts 1.1&1.2
793   */
794  cachedCount(value: number): GridAttribute;
795
796  /**
797   * Called to set number of GridItems to be preloaded (cached) in LazyForEach / Repeat.
798   * @param { number } count - number of GridItems to be preloaded (cached).
799   * @param { boolean } show - if true, cached items are displayed when clip is disabled.
800   * @returns { GridAttribute }
801   * @syscap SystemCapability.ArkUI.ArkUI.Full
802   * @crossplatform
803   * @atomicservice
804   * @since arkts {'1.1':'14','1.2':'20'}
805   * @arkts 1.1&1.2
806   */
807  cachedCount(count: number, show: boolean): GridAttribute;
808
809  /**
810   * editMode
811   *
812   * @param { boolean } value
813   * @returns { GridAttribute }
814   * @syscap SystemCapability.ArkUI.ArkUI.Full
815   * @since 8
816   */
817  /**
818   * editMode
819   *
820   * @param { boolean } value
821   * @returns { GridAttribute }
822   * @syscap SystemCapability.ArkUI.ArkUI.Full
823   * @crossplatform
824   * @since 10
825   */
826  /**
827   * editMode
828   *
829   * @param { boolean } value
830   * @returns { GridAttribute }
831   * @syscap SystemCapability.ArkUI.ArkUI.Full
832   * @crossplatform
833   * @atomicservice
834   * @since arkts {'1.1':'11','1.2':'20'}
835   * @arkts 1.1&1.2
836   */
837  editMode(value: boolean): GridAttribute;
838
839  /**
840   * Called when judging whether it is multiSelectable.
841   *
842   * @param { boolean } value
843   * @returns { GridAttribute }
844   * @syscap SystemCapability.ArkUI.ArkUI.Full
845   * @since 8
846   */
847  /**
848   * Called when judging whether it is multiSelectable.
849   *
850   * @param { boolean } value
851   * @returns { GridAttribute }
852   * @syscap SystemCapability.ArkUI.ArkUI.Full
853   * @crossplatform
854   * @since 10
855   */
856  /**
857   * Called when judging whether it is multiSelectable.
858   *
859   * @param { boolean } value
860   * @returns { GridAttribute }
861   * @syscap SystemCapability.ArkUI.ArkUI.Full
862   * @crossplatform
863   * @atomicservice
864   * @since arkts {'1.1':'11','1.2':'20'}
865   * @arkts 1.1&1.2
866   */
867  multiSelectable(value: boolean): GridAttribute;
868
869  /**
870   * maxCount
871   *
872   * @param { number } value
873   * @returns { GridAttribute }
874   * @syscap SystemCapability.ArkUI.ArkUI.Full
875   * @since 8
876   */
877  /**
878   * maxCount
879   *
880   * @param { number } value
881   * @returns { GridAttribute }
882   * @syscap SystemCapability.ArkUI.ArkUI.Full
883   * @crossplatform
884   * @since 10
885   */
886  /**
887   * maxCount
888   *
889   * @param { number } value
890   * @returns { GridAttribute }
891   * @syscap SystemCapability.ArkUI.ArkUI.Full
892   * @crossplatform
893   * @atomicservice
894   * @since arkts {'1.1':'11','1.2':'20'}
895   * @arkts 1.1&1.2
896   */
897  maxCount(value: number): GridAttribute;
898
899  /**
900   * minCount
901   *
902   * @param { number } value
903   * @returns { GridAttribute }
904   * @syscap SystemCapability.ArkUI.ArkUI.Full
905   * @since 8
906   */
907  /**
908   * minCount
909   *
910   * @param { number } value
911   * @returns { GridAttribute }
912   * @syscap SystemCapability.ArkUI.ArkUI.Full
913   * @crossplatform
914   * @since 10
915   */
916  /**
917   * minCount
918   *
919   * @param { number } value
920   * @returns { GridAttribute }
921   * @syscap SystemCapability.ArkUI.ArkUI.Full
922   * @crossplatform
923   * @atomicservice
924   * @since arkts {'1.1':'11','1.2':'20'}
925   * @arkts 1.1&1.2
926   */
927  minCount(value: number): GridAttribute;
928
929  /**
930   * cellLength
931   *
932   * @param { number } value
933   * @returns { GridAttribute }
934   * @syscap SystemCapability.ArkUI.ArkUI.Full
935   * @since 8
936   */
937  /**
938   * cellLength
939   *
940   * @param { number } value
941   * @returns { GridAttribute }
942   * @syscap SystemCapability.ArkUI.ArkUI.Full
943   * @crossplatform
944   * @since 10
945   */
946  /**
947   * cellLength
948   *
949   * @param { number } value
950   * @returns { GridAttribute }
951   * @syscap SystemCapability.ArkUI.ArkUI.Full
952   * @crossplatform
953   * @atomicservice
954   * @since arkts {'1.1':'11','1.2':'20'}
955   * @arkts 1.1&1.2
956   */
957  cellLength(value: number): GridAttribute;
958
959  /**
960   * Control GridDirection of the grid.
961   *
962   * @param { GridDirection } value
963   * @returns { GridAttribute }
964   * @syscap SystemCapability.ArkUI.ArkUI.Full
965   * @since 8
966   */
967  /**
968   * Control GridDirection of the grid.
969   *
970   * @param { GridDirection } value
971   * @returns { GridAttribute }
972   * @syscap SystemCapability.ArkUI.ArkUI.Full
973   * @crossplatform
974   * @since 10
975   */
976  /**
977   * Control GridDirection of the grid.
978   *
979   * @param { GridDirection } value
980   * @returns { GridAttribute }
981   * @syscap SystemCapability.ArkUI.ArkUI.Full
982   * @crossplatform
983   * @atomicservice
984   * @since arkts {'1.1':'11','1.2':'20'}
985   * @arkts 1.1&1.2
986   */
987  layoutDirection(value: GridDirection): GridAttribute;
988
989  /**
990   * Control if the grid supports animation.
991   *
992   * @param { boolean } value
993   * @returns { GridAttribute }
994   * @syscap SystemCapability.ArkUI.ArkUI.Full
995   * @since 8
996   */
997  /**
998   * Control if the grid supports animation.
999   *
1000   * @param { boolean } value
1001   * @returns { GridAttribute }
1002   * @syscap SystemCapability.ArkUI.ArkUI.Full
1003   * @crossplatform
1004   * @since 10
1005   */
1006  /**
1007   * Control if the grid supports animation.
1008   *
1009   * @param { boolean } value
1010   * @returns { GridAttribute }
1011   * @syscap SystemCapability.ArkUI.ArkUI.Full
1012   * @crossplatform
1013   * @atomicservice
1014   * @since arkts {'1.1':'11','1.2':'20'}
1015   * @arkts 1.1&1.2
1016   */
1017  supportAnimation(value: boolean): GridAttribute;
1018
1019  /**
1020   * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered.
1021   * (To be triggered, press and hold for 170 milliseconds (ms))
1022   *
1023   * @param { function } event
1024   * @returns { GridAttribute }
1025   * @syscap SystemCapability.ArkUI.ArkUI.Full
1026   * @since 8
1027   */
1028  /**
1029   * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered.
1030   * (To be triggered, press and hold for 170 milliseconds (ms))
1031   *
1032   * @param { function } event
1033   * @returns { GridAttribute }
1034   * @syscap SystemCapability.ArkUI.ArkUI.Full
1035   * @crossplatform
1036   * @since 10
1037   */
1038  /**
1039   * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered.
1040   * (To be triggered, press and hold for 170 milliseconds (ms))
1041   *
1042   * @param { function } event
1043   * @returns { GridAttribute }
1044   * @syscap SystemCapability.ArkUI.ArkUI.Full
1045   * @crossplatform
1046   * @atomicservice
1047   * @since 11
1048   */
1049  onItemDragStart(event: (event: ItemDragInfo, itemIndex: number) => (() => any) | void): GridAttribute;
1050
1051   /**
1052   * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered.
1053   * (To be triggered, press and hold for 170 milliseconds (ms))
1054   *
1055   * @param { OnItemDragStartCallback } event
1056   * @returns { GridAttribute }
1057   * @syscap SystemCapability.ArkUI.ArkUI.Full
1058   * @atomicservice
1059   * @since 20
1060   * @arkts 1.2
1061   */
1062  onItemDragStart(event: OnItemDragStartCallback): GridAttribute;
1063
1064  /**
1065   * After binding, a callback is triggered when the component is dragged to the range of the component.
1066   *
1067   * @param { function } event
1068   * @returns { GridAttribute }
1069   * @syscap SystemCapability.ArkUI.ArkUI.Full
1070   * @since 8
1071   */
1072  /**
1073   * After binding, a callback is triggered when the component is dragged to the range of the component.
1074   *
1075   * @param { function } event
1076   * @returns { GridAttribute }
1077   * @syscap SystemCapability.ArkUI.ArkUI.Full
1078   * @crossplatform
1079   * @since 10
1080   */
1081  /**
1082   * After binding, a callback is triggered when the component is dragged to the range of the component.
1083   *
1084   * @param { function } event
1085   * @returns { GridAttribute }
1086   * @syscap SystemCapability.ArkUI.ArkUI.Full
1087   * @crossplatform
1088   * @atomicservice
1089   * @since arkts {'1.1':'11','1.2':'20'}
1090   * @arkts 1.1&1.2
1091   */
1092  onItemDragEnter(event: (event: ItemDragInfo) => void): GridAttribute;
1093
1094  /**
1095   * After binding, a callback is triggered when the drag moves within the range of a placeable component.
1096   *
1097   * @param { function } event
1098   * @returns { GridAttribute }
1099   * @syscap SystemCapability.ArkUI.ArkUI.Full
1100   * @since 8
1101   */
1102  /**
1103   * After binding, a callback is triggered when the drag moves within the range of a placeable component.
1104   *
1105   * @param { function } event
1106   * @returns { GridAttribute }
1107   * @syscap SystemCapability.ArkUI.ArkUI.Full
1108   * @crossplatform
1109   * @since 10
1110   */
1111  /**
1112   * After binding, a callback is triggered when the drag moves within the range of a placeable component.
1113   *
1114   * @param { function } event
1115   * @returns { GridAttribute }
1116   * @syscap SystemCapability.ArkUI.ArkUI.Full
1117   * @crossplatform
1118   * @atomicservice
1119   * @since arkts {'1.1':'11','1.2':'20'}
1120   * @arkts 1.1&1.2
1121   */
1122  onItemDragMove(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number) => void): GridAttribute;
1123
1124  /**
1125   * After binding, a callback is triggered when the component is dragged out of the component range.
1126   *
1127   * @param { function } event
1128   * @returns { GridAttribute }
1129   * @syscap SystemCapability.ArkUI.ArkUI.Full
1130   * @since 8
1131   */
1132  /**
1133   * After binding, a callback is triggered when the component is dragged out of the component range.
1134   *
1135   * @param { function } event
1136   * @returns { GridAttribute }
1137   * @syscap SystemCapability.ArkUI.ArkUI.Full
1138   * @crossplatform
1139   * @since 10
1140   */
1141  /**
1142   * After binding, a callback is triggered when the component is dragged out of the component range.
1143   *
1144   * @param { function } event
1145   * @returns { GridAttribute }
1146   * @syscap SystemCapability.ArkUI.ArkUI.Full
1147   * @crossplatform
1148   * @atomicservice
1149   * @since arkts {'1.1':'11','1.2':'20'}
1150   * @arkts 1.1&1.2
1151   */
1152  onItemDragLeave(event: (event: ItemDragInfo, itemIndex: number) => void): GridAttribute;
1153
1154  /**
1155   * The component bound to this event can be used as the drag release target.
1156   * This callback is triggered when the drag behavior is stopped within the scope of the component.
1157   *
1158   * @param { function } event
1159   * @returns { GridAttribute }
1160   * @syscap SystemCapability.ArkUI.ArkUI.Full
1161   * @since 8
1162   */
1163  /**
1164   * The component bound to this event can be used as the drag release target.
1165   * This callback is triggered when the drag behavior is stopped within the scope of the component.
1166   *
1167   * @param { function } event
1168   * @returns { GridAttribute }
1169   * @syscap SystemCapability.ArkUI.ArkUI.Full
1170   * @crossplatform
1171   * @since 10
1172   */
1173  /**
1174   * The component bound to this event can be used as the drag release target.
1175   * This callback is triggered when the drag behavior is stopped within the scope of the component.
1176   *
1177   * @param { function } event
1178   * @returns { GridAttribute }
1179   * @syscap SystemCapability.ArkUI.ArkUI.Full
1180   * @crossplatform
1181   * @atomicservice
1182   * @since arkts {'1.1':'11','1.2':'20'}
1183   * @arkts 1.1&1.2
1184   */
1185  onItemDrop(
1186    event: (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void,
1187  ): GridAttribute;
1188
1189  /**
1190   * Called when the sliding effect is set.
1191   *
1192   * @param { EdgeEffect } value - Scroll effect. For details, see EdgeEffect.
1193   * @returns { GridAttribute } The attribute of the grid
1194   * @syscap SystemCapability.ArkUI.ArkUI.Full
1195   * @crossplatform
1196   * @since 10
1197   */
1198  /**
1199   * Called when the sliding effect is set.
1200   *
1201   * @param { EdgeEffect } value
1202   * @param { EdgeEffectOptions } options
1203   * @returns { GridAttribute } The attribute of the grid
1204   * @syscap SystemCapability.ArkUI.ArkUI.Full
1205   * @crossplatform
1206   * @atomicservice
1207   * @since 11
1208   */
1209  edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): GridAttribute;
1210
1211  /**
1212   * Called to setting the nested scroll options.
1213   *
1214   * @param { NestedScrollOptions } value - options for nested scrolling.
1215   * @returns { GridAttribute } the attribute of the grid.
1216   * @syscap SystemCapability.ArkUI.ArkUI.Full
1217   * @since 10
1218   */
1219  /**
1220   * Called to setting the nested scroll options.
1221   *
1222   * @param { NestedScrollOptions } value - options for nested scrolling.
1223   * @returns { GridAttribute } the attribute of the grid.
1224   * @syscap SystemCapability.ArkUI.ArkUI.Full
1225   * @crossplatform
1226   * @atomicservice
1227   * @since 11
1228   */
1229  nestedScroll(value: NestedScrollOptions): GridAttribute;
1230
1231  /**
1232   * Called when setting whether to enable scroll by gesture or mouse.
1233   *
1234   * @param { boolean } value
1235   * @returns { GridAttribute } The attribute of the grid
1236   * @syscap SystemCapability.ArkUI.ArkUI.Full
1237   * @crossplatform
1238   * @since 10
1239   */
1240  /**
1241   * Called when setting whether to enable scroll by gesture or mouse.
1242   *
1243   * @param { boolean } value
1244   * @returns { GridAttribute } The attribute of the grid
1245   * @syscap SystemCapability.ArkUI.ArkUI.Full
1246   * @crossplatform
1247   * @atomicservice
1248   * @since 11
1249   */
1250  enableScrollInteraction(value: boolean): GridAttribute;
1251
1252  /**
1253   * Called to setting the friction.
1254   *
1255   * @param { number | Resource } value - options for scrolling friction.
1256   * @returns { GridAttribute } the attribute of the grid.
1257   * @syscap SystemCapability.ArkUI.ArkUI.Full
1258   * @crossplatform
1259   * @since 10
1260   */
1261  /**
1262   * Called to setting the friction.
1263   *
1264   * @param { number | Resource } value - options for scrolling friction.
1265   * @returns { GridAttribute } the attribute of the grid.
1266   * @syscap SystemCapability.ArkUI.ArkUI.Full
1267   * @crossplatform
1268   * @atomicservice
1269   * @since 11
1270   */
1271  friction(value: number | Resource): GridAttribute;
1272
1273  /**
1274   * Set the alignment of grid items.
1275   *
1276   * @param { Optional<GridItemAlignment> } alignment - Items alignment
1277   * @returns { GridAttribute } The attribute of the grid.
1278   * @syscap SystemCapability.ArkUI.ArkUI.Full
1279   * @crossplatform
1280   * @atomicservice
1281   * @since arkts {'1.1':'12','1.2':'20'}
1282   * @arkts 1.1&1.2
1283   */
1284    alignItems(alignment: Optional<GridItemAlignment>): GridAttribute;
1285
1286  /**
1287     * Sets the focus wrap mode of the grid.
1288     *
1289     * @param { Optional<FocusWrapMode> } mode - the focus wrap mode of the grid.
1290     * <br>Default value: **FocusWrapMode.DEFAULT**.
1291     * @returns { GridAttribute } the attribute of the grid.
1292     * @syscap SystemCapability.ArkUI.ArkUI.Full
1293     * @crossplatform
1294     * @atomicservice
1295     * @since 20
1296     */
1297    focusWrapMode(mode: Optional<FocusWrapMode>): GridAttribute;
1298
1299  /**
1300   * Set whether to synchronously load child nodes within one frame.
1301   *
1302   * @param { boolean } enable - Whether to synchronously load child nodes within one frame
1303   * @returns { GridAttribute } The attribute of the grid.
1304   * @syscap SystemCapability.ArkUI.ArkUI.Full
1305   * @crossplatform
1306   * @atomicservice
1307   * @since 20
1308   */
1309  syncLoad(enable: boolean): GridAttribute;
1310
1311  /**
1312   * Called When sliding the grid.
1313   *
1314   * @param { function } event - callback of grid scroll,
1315   * scrollOffset is offset per frame scrolling, ScrollState is current sliding state.
1316   * @returns { GridAttribute }
1317   * @syscap SystemCapability.ArkUI.ArkUI.Full
1318   * @crossplatform
1319   * @since 10
1320   */
1321  /**
1322   * Called When sliding the grid.
1323   *
1324   * @param { function } event - callback of grid scroll,
1325   * scrollOffset is offset per frame scrolling, ScrollState is current sliding state.
1326   * @returns { GridAttribute }
1327   * @syscap SystemCapability.ArkUI.ArkUI.Full
1328   * @crossplatform
1329   * @atomicservice
1330   * @since 11
1331   * @deprecated since 12
1332   * @useinstead common.ScrollableCommonMethod#onDidScroll
1333   */
1334  onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): GridAttribute;
1335
1336  /**
1337   * Called when the grid begins to arrive.
1338   *
1339   * @param { function } event
1340   * @returns { GridAttribute }
1341   * @syscap SystemCapability.ArkUI.ArkUI.Full
1342   * @crossplatform
1343   * @since 10
1344   */
1345  /**
1346   * Called when the grid begins to arrive.
1347   *
1348   * @param { function } event
1349   * @returns { GridAttribute }
1350   * @syscap SystemCapability.ArkUI.ArkUI.Full
1351   * @crossplatform
1352   * @atomicservice
1353   * @since 11
1354   */
1355  onReachStart(event: () => void): GridAttribute;
1356
1357  /**
1358   * Called when the grid reaches the end.
1359   *
1360   * @param { function } event
1361   * @returns { GridAttribute }
1362   * @syscap SystemCapability.ArkUI.ArkUI.Full
1363   * @crossplatform
1364   * @since 10
1365   */
1366  /**
1367   * Called when the grid reaches the end.
1368   *
1369   * @param { function } event
1370   * @returns { GridAttribute }
1371   * @syscap SystemCapability.ArkUI.ArkUI.Full
1372   * @crossplatform
1373   * @atomicservice
1374   * @since 11
1375   */
1376  onReachEnd(event: () => void): GridAttribute;
1377
1378  /**
1379   * Called when the slider start.
1380   *
1381   * @param { function } event
1382   * @returns { GridAttribute }
1383   * @syscap SystemCapability.ArkUI.ArkUI.Full
1384   * @crossplatform
1385   * @since 10
1386   */
1387  /**
1388   * Called when the slider start.
1389   *
1390   * @param { function } event
1391   * @returns { GridAttribute }
1392   * @syscap SystemCapability.ArkUI.ArkUI.Full
1393   * @crossplatform
1394   * @atomicservice
1395   * @since 11
1396   */
1397  onScrollStart(event: () => void): GridAttribute;
1398
1399  /**
1400   * Called when the slider stops.
1401   *
1402   * @param { function } event
1403   * @returns { GridAttribute }
1404   * @syscap SystemCapability.ArkUI.ArkUI.Full
1405   * @crossplatform
1406   * @since 10
1407   */
1408  /**
1409   * Called when the slider stops.
1410   *
1411   * @param { function } event
1412   * @returns { GridAttribute }
1413   * @syscap SystemCapability.ArkUI.ArkUI.Full
1414   * @crossplatform
1415   * @atomicservice
1416   * @since 11
1417   */
1418  onScrollStop(event: () => void): GridAttribute;
1419
1420  /**
1421   * Called when scrolling begin each frame.
1422   *
1423   * @param { function } event - callback of grid scroll,
1424   * offset is the amount of sliding that is about to occur, state is current sliding state,
1425   * return number to actual sliding offset.
1426   * @returns { GridAttribute }
1427   * @syscap SystemCapability.ArkUI.ArkUI.Full
1428   * @crossplatform
1429   * @since 10
1430   */
1431  /**
1432   * Called when scrolling begin each frame.
1433   *
1434   * @param { function } event - callback of grid scroll,
1435   * offset is the amount of sliding that is about to occur, state is current sliding state,
1436   * return number to actual sliding offset.
1437   * @returns { GridAttribute }
1438   * @syscap SystemCapability.ArkUI.ArkUI.Full
1439   * @crossplatform
1440   * @atomicservice
1441   * @since 11
1442   */
1443  /**
1444   * Called when scrolling begin each frame.
1445   * Anonymous Object Rectification.
1446   *
1447   * @param { OnScrollFrameBeginCallback } event - callback function, triggered when the scrolling begin each frame.
1448   * @returns { GridAttribute } Returns the instance of the GridAttribute.
1449   * @syscap SystemCapability.ArkUI.ArkUI.Full
1450   * @crossplatform
1451   * @atomicservice
1452   * @since 20
1453   */
1454  onScrollFrameBegin(event: OnScrollFrameBeginCallback): GridAttribute;
1455
1456  /**
1457   * Called when scrolling begin each frame.
1458   * Anonymous Object Rectification.
1459   *
1460   * @param { OnScrollFrameBeginCallback } event - callback function, triggered when the scrolling begin each frame.
1461   * @returns { GridAttribute } Returns the instance of the GridAttribute.
1462   * @syscap SystemCapability.ArkUI.ArkUI.Full
1463   * @crossplatform
1464   * @atomicservice
1465   * @since 20
1466   * @arkts 1.2
1467   */
1468  onScrollFrameBegin(event: OnScrollFrameBeginCallback): GridAttribute;
1469
1470  /**
1471   * Called when the scrollable will scroll.
1472   *
1473   * @param { Optional<OnWillScrollCallback> } handler - callback of scrollable.
1474   * @returns { GridAttribute }
1475   * @syscap SystemCapability.ArkUI.ArkUI.Full
1476   * @atomicservice
1477   * @since 20
1478   * @arkts 1.2
1479   */
1480  onWillScroll(handler: Optional<OnWillScrollCallback>): GridAttribute;
1481
1482  /**
1483   * Called when the scrollable did scroll.
1484   *
1485   * @param { OnScrollCallback } handler - callback of scrollable,
1486   * scrollOffset is offset this frame did scroll, scrollState is current scroll state.
1487   * @returns { GridAttribute }
1488   * @syscap SystemCapability.ArkUI.ArkUI.Full
1489   * @atomicservice
1490   * @since 20
1491   * @arkts 1.2
1492   */
1493  onDidScroll(handler: OnScrollCallback): GridAttribute;
1494}
1495
1496/**
1497 * Defines Grid Component.
1498 *
1499 * @syscap SystemCapability.ArkUI.ArkUI.Full
1500 * @since 7
1501 */
1502/**
1503 * Defines Grid Component.
1504 *
1505 * @syscap SystemCapability.ArkUI.ArkUI.Full
1506 * @crossplatform
1507 * @since 10
1508 */
1509/**
1510 * Defines Grid Component.
1511 *
1512 * @syscap SystemCapability.ArkUI.ArkUI.Full
1513 * @crossplatform
1514 * @atomicservice
1515 * @since 11
1516 */
1517/**
1518 * Defines Grid Component.
1519 * It is recommended to use LazyForEach or Repeat to generate child components.
1520 *
1521 * @syscap SystemCapability.ArkUI.ArkUI.Full
1522 * @crossplatform
1523 * @atomicservice
1524 * @since 20
1525 */
1526declare const Grid: GridInterface;
1527
1528/**
1529 * Defines Grid Component instance.
1530 *
1531 * @syscap SystemCapability.ArkUI.ArkUI.Full
1532 * @since 7
1533 */
1534/**
1535 * Defines Grid Component instance.
1536 *
1537 * @syscap SystemCapability.ArkUI.ArkUI.Full
1538 * @crossplatform
1539 * @since 10
1540 */
1541/**
1542 * Defines Grid Component instance.
1543 *
1544 * @syscap SystemCapability.ArkUI.ArkUI.Full
1545 * @crossplatform
1546 * @atomicservice
1547 * @since 11
1548 */
1549declare const GridInstance: GridAttribute;
1550