1/* 2 * Copyright (c) 2022-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/** 22 * Defines the option in length unit of grid-row component. 23 * 24 * @interface GridRowSizeOption 25 * @syscap SystemCapability.ArkUI.ArkUI.Full 26 * @form 27 * @since 9 28 */ 29/** 30 * Defines the option in length unit of grid-row component. 31 * 32 * @interface GridRowSizeOption 33 * @syscap SystemCapability.ArkUI.ArkUI.Full 34 * @crossplatform 35 * @form 36 * @since 10 37 */ 38/** 39 * Defines the option in length unit of grid-row component. 40 * 41 * @interface GridRowSizeOption 42 * @syscap SystemCapability.ArkUI.ArkUI.Full 43 * @crossplatform 44 * @form 45 * @atomicservice 46 * @since 11 47 */ 48declare interface GridRowSizeOption { 49 /** 50 * Grid Row Size Option xs, select xs gutter size based on gridRow current breakpoint 51 * 52 * @type { ?Length } 53 * @syscap SystemCapability.ArkUI.ArkUI.Full 54 * @form 55 * @since 9 56 */ 57 /** 58 * Grid Row Size Option xs, select xs gutter size based on gridRow current breakpoint 59 * 60 * @type { ?Length } 61 * @syscap SystemCapability.ArkUI.ArkUI.Full 62 * @crossplatform 63 * @form 64 * @since 10 65 */ 66 /** 67 * Grid Row Size Option xs, select xs gutter size based on gridRow current breakpoint 68 * 69 * @type { ?Length } 70 * @syscap SystemCapability.ArkUI.ArkUI.Full 71 * @crossplatform 72 * @form 73 * @atomicservice 74 * @since 11 75 */ 76 xs?: Length, 77 78 /** 79 * Grid Row Size Option sm, select sm gutter size based on gridRow current breakpoint 80 * 81 * @type { ?Length } 82 * @syscap SystemCapability.ArkUI.ArkUI.Full 83 * @form 84 * @since 9 85 */ 86 /** 87 * Grid Row Size Option sm, select sm gutter size based on gridRow current breakpoint 88 * 89 * @type { ?Length } 90 * @syscap SystemCapability.ArkUI.ArkUI.Full 91 * @crossplatform 92 * @form 93 * @since 10 94 */ 95 /** 96 * Grid Row Size Option sm, select sm gutter size based on gridRow current breakpoint 97 * 98 * @type { ?Length } 99 * @syscap SystemCapability.ArkUI.ArkUI.Full 100 * @crossplatform 101 * @form 102 * @atomicservice 103 * @since 11 104 */ 105 sm?: Length, 106 107 /** 108 * Grid Row Size Option md, select md gutter size based on gridRow current breakpoint 109 * 110 * @type { ?Length } 111 * @syscap SystemCapability.ArkUI.ArkUI.Full 112 * @form 113 * @since 9 114 */ 115 /** 116 * Grid Row Size Option md, select md gutter size based on gridRow current breakpoint 117 * 118 * @type { ?Length } 119 * @syscap SystemCapability.ArkUI.ArkUI.Full 120 * @crossplatform 121 * @form 122 * @since 10 123 */ 124 /** 125 * Grid Row Size Option md, select md gutter size based on gridRow current breakpoint 126 * 127 * @type { ?Length } 128 * @syscap SystemCapability.ArkUI.ArkUI.Full 129 * @crossplatform 130 * @form 131 * @atomicservice 132 * @since 11 133 */ 134 md?: Length, 135 136 /** 137 * Grid Row Size Option lg, select lg gutter size based on gridRow current breakpoint 138 * 139 * @type { ?Length } 140 * @syscap SystemCapability.ArkUI.ArkUI.Full 141 * @form 142 * @since 9 143 */ 144 /** 145 * Grid Row Size Option lg, select lg gutter size based on gridRow current breakpoint 146 * 147 * @type { ?Length } 148 * @syscap SystemCapability.ArkUI.ArkUI.Full 149 * @crossplatform 150 * @form 151 * @since 10 152 */ 153 /** 154 * Grid Row Size Option lg, select lg gutter size based on gridRow current breakpoint 155 * 156 * @type { ?Length } 157 * @syscap SystemCapability.ArkUI.ArkUI.Full 158 * @crossplatform 159 * @form 160 * @atomicservice 161 * @since 11 162 */ 163 lg?: Length, 164 165 /** 166 * Grid Row Size Option xl, select xl gutter size based on gridRow current breakpoint 167 * 168 * @type { ?Length } 169 * @syscap SystemCapability.ArkUI.ArkUI.Full 170 * @form 171 * @since 9 172 */ 173 /** 174 * Grid Row Size Option xl, select xl gutter size based on gridRow current breakpoint 175 * 176 * @type { ?Length } 177 * @syscap SystemCapability.ArkUI.ArkUI.Full 178 * @crossplatform 179 * @form 180 * @since 10 181 */ 182 /** 183 * Grid Row Size Option xl, select xl gutter size based on gridRow current breakpoint 184 * 185 * @type { ?Length } 186 * @syscap SystemCapability.ArkUI.ArkUI.Full 187 * @crossplatform 188 * @form 189 * @atomicservice 190 * @since 11 191 */ 192 xl?: Length, 193 194 /** 195 * Grid Row Size Option xxl, select xxl gutter size based on gridRow current breakpoint 196 * 197 * @type { ?Length } 198 * @syscap SystemCapability.ArkUI.ArkUI.Full 199 * @form 200 * @since 9 201 */ 202 /** 203 * Grid Row Size Option xxl, select xxl gutter size based on gridRow current breakpoint 204 * 205 * @type { ?Length } 206 * @syscap SystemCapability.ArkUI.ArkUI.Full 207 * @crossplatform 208 * @form 209 * @since 10 210 */ 211 /** 212 * Grid Row Size Option xxl, select xxl gutter size based on gridRow current breakpoint 213 * 214 * @type { ?Length } 215 * @syscap SystemCapability.ArkUI.ArkUI.Full 216 * @crossplatform 217 * @form 218 * @atomicservice 219 * @since 11 220 */ 221 xxl?: Length, 222} 223 224/** 225 * Defines the option in number unit of grid-container component. 226 * 227 * @interface GridRowColumnOption 228 * @syscap SystemCapability.ArkUI.ArkUI.Full 229 * @form 230 * @since 9 231 */ 232/** 233 * Defines the option in number unit of grid-container component. 234 * 235 * @interface GridRowColumnOption 236 * @syscap SystemCapability.ArkUI.ArkUI.Full 237 * @crossplatform 238 * @form 239 * @since 10 240 */ 241/** 242 * Defines the option in number unit of grid-container component. 243 * 244 * @interface GridRowColumnOption 245 * @syscap SystemCapability.ArkUI.ArkUI.Full 246 * @crossplatform 247 * @form 248 * @atomicservice 249 * @since 11 250 */ 251declare interface GridRowColumnOption { 252 /** 253 * Grid Row Column Option xs, select xs column num based on gridRow current breakpoint 254 * 255 * @type { ?number } 256 * @syscap SystemCapability.ArkUI.ArkUI.Full 257 * @form 258 * @since 9 259 */ 260 /** 261 * Grid Row Column Option xs, select xs column num based on gridRow current breakpoint 262 * 263 * @type { ?number } 264 * @syscap SystemCapability.ArkUI.ArkUI.Full 265 * @crossplatform 266 * @form 267 * @since 10 268 */ 269 /** 270 * Grid Row Column Option xs, select xs column num based on gridRow current breakpoint 271 * 272 * @type { ?number } 273 * @syscap SystemCapability.ArkUI.ArkUI.Full 274 * @crossplatform 275 * @form 276 * @atomicservice 277 * @since 11 278 */ 279 xs?: number, 280 281 /** 282 * Grid Row Column Option sm, select sm column num based on gridRow current breakpoint 283 * 284 * @type { ?number } 285 * @syscap SystemCapability.ArkUI.ArkUI.Full 286 * @form 287 * @since 9 288 */ 289 /** 290 * Grid Row Column Option sm, select sm column num based on gridRow current breakpoint 291 * 292 * @type { ?number } 293 * @syscap SystemCapability.ArkUI.ArkUI.Full 294 * @crossplatform 295 * @form 296 * @since 10 297 */ 298 /** 299 * Grid Row Column Option sm, select sm column num based on gridRow current breakpoint 300 * 301 * @type { ?number } 302 * @syscap SystemCapability.ArkUI.ArkUI.Full 303 * @crossplatform 304 * @form 305 * @atomicservice 306 * @since 11 307 */ 308 sm?: number, 309 310 /** 311 * Grid Row Column Option md, select md column num based on gridRow current breakpoint 312 * 313 * @type { ?number } 314 * @syscap SystemCapability.ArkUI.ArkUI.Full 315 * @form 316 * @since 9 317 */ 318 /** 319 * Grid Row Column Option md, select md column num based on gridRow current breakpoint 320 * 321 * @type { ?number } 322 * @syscap SystemCapability.ArkUI.ArkUI.Full 323 * @crossplatform 324 * @form 325 * @since 10 326 */ 327 /** 328 * Grid Row Column Option md 329 * 330 * @type { ?number } 331 * @syscap SystemCapability.ArkUI.ArkUI.Full 332 * @crossplatform 333 * @form 334 * @atomicservice 335 * @since 11 336 */ 337 md?: number, 338 339 /** 340 * Grid Row Column Option lg, select lg column num based on gridRow current breakpoint 341 * 342 * @type { ?number } 343 * @syscap SystemCapability.ArkUI.ArkUI.Full 344 * @form 345 * @since 9 346 */ 347 /** 348 * Grid Row Column Option lg, select lg column num based on gridRow current breakpoint 349 * 350 * @type { ?number } 351 * @syscap SystemCapability.ArkUI.ArkUI.Full 352 * @crossplatform 353 * @form 354 * @since 10 355 */ 356 /** 357 * Grid Row Column Option lg, select lg column num based on gridRow current breakpoint 358 * 359 * @type { ?number } 360 * @syscap SystemCapability.ArkUI.ArkUI.Full 361 * @crossplatform 362 * @form 363 * @atomicservice 364 * @since 11 365 */ 366 lg?: number, 367 368 /** 369 * Grid Row Column Option xl, select xl column num based on gridRow current breakpoint 370 * 371 * @type { ?number } 372 * @syscap SystemCapability.ArkUI.ArkUI.Full 373 * @form 374 * @since 9 375 */ 376 /** 377 * Grid Row Column Option xl, select xl column num based on gridRow current breakpoint 378 * 379 * @type { ?number } 380 * @syscap SystemCapability.ArkUI.ArkUI.Full 381 * @crossplatform 382 * @form 383 * @since 10 384 */ 385 /** 386 * Grid Row Column Option xl, select xl column num based on gridRow current breakpoint 387 * 388 * @type { ?number } 389 * @syscap SystemCapability.ArkUI.ArkUI.Full 390 * @crossplatform 391 * @form 392 * @atomicservice 393 * @since 11 394 */ 395 xl?: number, 396 397 /** 398 * Grid Row Column Option xxl, select xxl column num based on gridRow current breakpoint 399 * 400 * @type { ?number } 401 * @syscap SystemCapability.ArkUI.ArkUI.Full 402 * @form 403 * @since 9 404 */ 405 /** 406 * Grid Row Column Option xxl, select xxl column num based on gridRow current breakpoint 407 * 408 * @type { ?number } 409 * @syscap SystemCapability.ArkUI.ArkUI.Full 410 * @crossplatform 411 * @form 412 * @since 10 413 */ 414 /** 415 * Grid Row Column Option xxl, select xxl column num based on gridRow current breakpoint 416 * 417 * @type { ?number } 418 * @syscap SystemCapability.ArkUI.ArkUI.Full 419 * @crossplatform 420 * @form 421 * @atomicservice 422 * @since 11 423 */ 424 xxl?: number, 425} 426 427/** 428 * Defines the gutter of grid-row component. 429 * 430 * @interface GutterOption 431 * @syscap SystemCapability.ArkUI.ArkUI.Full 432 * @form 433 * @since 9 434 */ 435/** 436 * Defines the gutter of grid-row component. 437 * 438 * @interface GutterOption 439 * @syscap SystemCapability.ArkUI.ArkUI.Full 440 * @crossplatform 441 * @form 442 * @since 10 443 */ 444/** 445 * Defines the gutter of grid-row component. 446 * 447 * @interface GutterOption 448 * @syscap SystemCapability.ArkUI.ArkUI.Full 449 * @crossplatform 450 * @form 451 * @atomicservice 452 * @since 11 453 */ 454declare interface GutterOption { 455 /** 456 * Define x in GutterOption 457 * 458 * @type { ?(Length | GridRowSizeOption) } 459 * @syscap SystemCapability.ArkUI.ArkUI.Full 460 * @form 461 * @since 9 462 */ 463 /** 464 * Define x in GutterOption 465 * 466 * @type { ?(Length | GridRowSizeOption) } 467 * @syscap SystemCapability.ArkUI.ArkUI.Full 468 * @crossplatform 469 * @form 470 * @since 10 471 */ 472 /** 473 * Define x in GutterOption 474 * 475 * @type { ?(Length | GridRowSizeOption) } 476 * @syscap SystemCapability.ArkUI.ArkUI.Full 477 * @crossplatform 478 * @form 479 * @atomicservice 480 * @since 11 481 */ 482 x?: Length | GridRowSizeOption, 483 484 /** 485 * Define y in GutterOption 486 * 487 * @type { ?(Length | GridRowSizeOption) } 488 * @syscap SystemCapability.ArkUI.ArkUI.Full 489 * @form 490 * @since 9 491 */ 492 /** 493 * Define y in GutterOption 494 * 495 * @type { ?(Length | GridRowSizeOption) } 496 * @syscap SystemCapability.ArkUI.ArkUI.Full 497 * @crossplatform 498 * @form 499 * @since 10 500 */ 501 /** 502 * Define y in GutterOption 503 * 504 * @type { ?(Length | GridRowSizeOption) } 505 * @syscap SystemCapability.ArkUI.ArkUI.Full 506 * @crossplatform 507 * @form 508 * @atomicservice 509 * @since 11 510 */ 511 y?: Length | GridRowSizeOption 512} 513 514/** 515 * Defines the breakpoint reference of grid-container component. 516 * 517 * @enum { number } 518 * @syscap SystemCapability.ArkUI.ArkUI.Full 519 * @form 520 * @since 9 521 */ 522/** 523 * Defines the breakpoint reference of grid-container component. 524 * 525 * @enum { number } 526 * @syscap SystemCapability.ArkUI.ArkUI.Full 527 * @crossplatform 528 * @form 529 * @since 10 530 */ 531/** 532 * Defines the breakpoint reference of grid-container component. 533 * 534 * @enum { number } 535 * @syscap SystemCapability.ArkUI.ArkUI.Full 536 * @crossplatform 537 * @form 538 * @atomicservice 539 * @since 11 540 */ 541declare enum BreakpointsReference { 542 /** 543 * Respond to breakpoint changes according to window width 544 * 545 * @syscap SystemCapability.ArkUI.ArkUI.Full 546 * @form 547 * @since 9 548 */ 549 /** 550 * Respond to breakpoint changes according to window width 551 * 552 * @syscap SystemCapability.ArkUI.ArkUI.Full 553 * @crossplatform 554 * @form 555 * @since 10 556 */ 557 /** 558 * Respond to breakpoint changes according to window width 559 * 560 * @syscap SystemCapability.ArkUI.ArkUI.Full 561 * @crossplatform 562 * @form 563 * @atomicservice 564 * @since 11 565 */ 566 WindowSize, 567 568 /** 569 * Respond to breakpoint changes according to component width 570 * 571 * @syscap SystemCapability.ArkUI.ArkUI.Full 572 * @form 573 * @since 9 574 */ 575 /** 576 * Respond to breakpoint changes according to component width 577 * 578 * @syscap SystemCapability.ArkUI.ArkUI.Full 579 * @crossplatform 580 * @form 581 * @since 10 582 */ 583 /** 584 * Respond to breakpoint changes according to component width 585 * 586 * @syscap SystemCapability.ArkUI.ArkUI.Full 587 * @crossplatform 588 * @form 589 * @atomicservice 590 * @since 11 591 */ 592 ComponentSize, 593} 594 595/** 596 * Defines the direction of grid-container component. 597 * 598 * @enum { number } 599 * @syscap SystemCapability.ArkUI.ArkUI.Full 600 * @form 601 * @since 9 602 */ 603/** 604 * Defines the direction of grid-container component. 605 * 606 * @enum { number } 607 * @syscap SystemCapability.ArkUI.ArkUI.Full 608 * @crossplatform 609 * @form 610 * @since 10 611 */ 612/** 613 * Defines the direction of grid-container component. 614 * 615 * @enum { number } 616 * @syscap SystemCapability.ArkUI.ArkUI.Full 617 * @crossplatform 618 * @form 619 * @atomicservice 620 * @since 11 621 */ 622declare enum GridRowDirection { 623 /** 624 * The elements in the grid component are arranged in rows 625 * 626 * @syscap SystemCapability.ArkUI.ArkUI.Full 627 * @form 628 * @since 9 629 */ 630 /** 631 * The elements in the grid component are arranged in rows 632 * 633 * @syscap SystemCapability.ArkUI.ArkUI.Full 634 * @crossplatform 635 * @form 636 * @since 10 637 */ 638 /** 639 * The elements in the grid component are arranged in rows 640 * 641 * @syscap SystemCapability.ArkUI.ArkUI.Full 642 * @crossplatform 643 * @form 644 * @atomicservice 645 * @since 11 646 */ 647 Row, 648 649 /** 650 * The elements in the grid component are arranged in reverse order of rows 651 * 652 * @syscap SystemCapability.ArkUI.ArkUI.Full 653 * @form 654 * @since 9 655 */ 656 /** 657 * The elements in the grid component are arranged in reverse order of rows 658 * 659 * @syscap SystemCapability.ArkUI.ArkUI.Full 660 * @crossplatform 661 * @form 662 * @since 10 663 */ 664 /** 665 * The elements in the grid component are arranged in reverse order of rows 666 * 667 * @syscap SystemCapability.ArkUI.ArkUI.Full 668 * @crossplatform 669 * @form 670 * @atomicservice 671 * @since 11 672 */ 673 RowReverse, 674} 675 676/** 677 * Defines the breakpoints of grid-row component. 678 * 679 * @interface BreakPoints 680 * @syscap SystemCapability.ArkUI.ArkUI.Full 681 * @form 682 * @since 9 683 */ 684/** 685 * Defines the breakpoints of grid-row component. 686 * 687 * @interface BreakPoints 688 * @syscap SystemCapability.ArkUI.ArkUI.Full 689 * @crossplatform 690 * @form 691 * @since 10 692 */ 693/** 694 * Defines the breakpoints of grid-row component. 695 * 696 * @interface BreakPoints 697 * @syscap SystemCapability.ArkUI.ArkUI.Full 698 * @crossplatform 699 * @form 700 * @atomicservice 701 * @since 11 702 */ 703declare interface BreakPoints { 704 /** 705 * Breakpoint array 706 * 707 * @type { ?Array<string> } 708 * @syscap SystemCapability.ArkUI.ArkUI.Full 709 * @form 710 * @since 9 711 */ 712 /** 713 * Breakpoint array 714 * 715 * @type { ?Array<string> } 716 * @syscap SystemCapability.ArkUI.ArkUI.Full 717 * @crossplatform 718 * @form 719 * @since 10 720 */ 721 /** 722 * Breakpoint array 723 * 724 * @type { ?Array<string> } 725 * @syscap SystemCapability.ArkUI.ArkUI.Full 726 * @crossplatform 727 * @form 728 * @atomicservice 729 * @since 11 730 */ 731 value?: Array<string>, 732 733 /** 734 * Set breakpoint reference 735 * 736 * @type { ?BreakpointsReference } 737 * @syscap SystemCapability.ArkUI.ArkUI.Full 738 * @form 739 * @since 9 740 */ 741 /** 742 * Set breakpoint reference 743 * 744 * @type { ?BreakpointsReference } 745 * @syscap SystemCapability.ArkUI.ArkUI.Full 746 * @crossplatform 747 * @form 748 * @since 10 749 */ 750 /** 751 * Set breakpoint reference 752 * 753 * @type { ?BreakpointsReference } 754 * @syscap SystemCapability.ArkUI.ArkUI.Full 755 * @crossplatform 756 * @form 757 * @atomicservice 758 * @since 11 759 */ 760 reference?: BreakpointsReference, 761} 762 763/** 764 * Defines the options of grid-row component. 765 * 766 * @interface GridRowOptions 767 * @syscap SystemCapability.ArkUI.ArkUI.Full 768 * @form 769 * @since 9 770 */ 771/** 772 * Defines the options of grid-row component. 773 * 774 * @interface GridRowOptions 775 * @syscap SystemCapability.ArkUI.ArkUI.Full 776 * @crossplatform 777 * @form 778 * @since 10 779 */ 780/** 781 * Defines the options of grid-row component. 782 * 783 * @interface GridRowOptions 784 * @syscap SystemCapability.ArkUI.ArkUI.Full 785 * @crossplatform 786 * @form 787 * @atomicservice 788 * @since 11 789 */ 790declare interface GridRowOptions { 791 /** 792 * layout spacing between sub-components 793 * 794 * @type { ?(Length | GutterOption) } 795 * @syscap SystemCapability.ArkUI.ArkUI.Full 796 * @form 797 * @since 9 798 */ 799 /** 800 * layout spacing between sub-components 801 * 802 * @type { ?(Length | GutterOption) } 803 * @syscap SystemCapability.ArkUI.ArkUI.Full 804 * @crossplatform 805 * @form 806 * @since 10 807 */ 808 /** 809 * layout spacing between sub-components 810 * 811 * @type { ?(Length | GutterOption) } 812 * @syscap SystemCapability.ArkUI.ArkUI.Full 813 * @crossplatform 814 * @form 815 * @atomicservice 816 * @since 11 817 */ 818 gutter?: Length | GutterOption; 819 820 /** 821 * Sets the total number of columns in the current layout. 822 * 823 * @type { ?(number | GridRowColumnOption) } 824 * @syscap SystemCapability.ArkUI.ArkUI.Full 825 * @form 826 * @since 9 827 */ 828 /** 829 * Sets the total number of columns in the current layout. 830 * 831 * @type { ?(number | GridRowColumnOption) } 832 * @syscap SystemCapability.ArkUI.ArkUI.Full 833 * @crossplatform 834 * @form 835 * @since 10 836 */ 837 /** 838 * Sets the total number of columns in the current layout. 839 * 840 * @type { ?(number | GridRowColumnOption) } 841 * @syscap SystemCapability.ArkUI.ArkUI.Full 842 * @crossplatform 843 * @form 844 * @atomicservice 845 * @since 11 846 */ 847 columns?: number | GridRowColumnOption; 848 849 /** 850 * grid-row layout breakpoints. 851 * 852 * @type { ?BreakPoints } 853 * @syscap SystemCapability.ArkUI.ArkUI.Full 854 * @form 855 * @since 9 856 */ 857 /** 858 * grid-row layout breakpoints. 859 * 860 * @type { ?BreakPoints } 861 * @syscap SystemCapability.ArkUI.ArkUI.Full 862 * @crossplatform 863 * @form 864 * @since 10 865 */ 866 /** 867 * grid-row layout breakpoints. 868 * 869 * @type { ?BreakPoints } 870 * @syscap SystemCapability.ArkUI.ArkUI.Full 871 * @crossplatform 872 * @form 873 * @atomicservice 874 * @since 11 875 */ 876 breakpoints?: BreakPoints; 877 878 /** 879 * grid-row layout direction. 880 * 881 * @type { ?GridRowDirection } 882 * @syscap SystemCapability.ArkUI.ArkUI.Full 883 * @form 884 * @since 9 885 */ 886 /** 887 * grid-row layout direction. 888 * 889 * @type { ?GridRowDirection } 890 * @syscap SystemCapability.ArkUI.ArkUI.Full 891 * @crossplatform 892 * @form 893 * @since 10 894 */ 895 /** 896 * grid-row layout direction. 897 * 898 * @type { ?GridRowDirection } 899 * @syscap SystemCapability.ArkUI.ArkUI.Full 900 * @crossplatform 901 * @form 902 * @atomicservice 903 * @since 11 904 */ 905 direction?: GridRowDirection; 906} 907 908/** 909 * Defines the the new version of grid-container component. 910 * 911 * @interface GridRowInterface 912 * @syscap SystemCapability.ArkUI.ArkUI.Full 913 * @form 914 * @since 9 915 */ 916/** 917 * Defines the the new version of grid-container component. 918 * 919 * @interface GridRowInterface 920 * @syscap SystemCapability.ArkUI.ArkUI.Full 921 * @crossplatform 922 * @form 923 * @since 10 924 */ 925/** 926 * Defines the the new version of grid-container component. 927 * 928 * @interface GridRowInterface 929 * @syscap SystemCapability.ArkUI.ArkUI.Full 930 * @crossplatform 931 * @form 932 * @atomicservice 933 * @since 11 934 */ 935interface GridRowInterface { 936 /** 937 * Defines the constructor of GridRow. 938 * 939 * @param { GridRowOptions } option 940 * @returns { GridRowAttribute } 941 * @syscap SystemCapability.ArkUI.ArkUI.Full 942 * @form 943 * @since 9 944 */ 945 /** 946 * Defines the constructor of GridRow. 947 * 948 * @param { GridRowOptions } option 949 * @returns { GridRowAttribute } 950 * @syscap SystemCapability.ArkUI.ArkUI.Full 951 * @crossplatform 952 * @form 953 * @since 10 954 */ 955 /** 956 * Defines the constructor of GridRow. 957 * 958 * @param { GridRowOptions } option 959 * @returns { GridRowAttribute } 960 * @syscap SystemCapability.ArkUI.ArkUI.Full 961 * @crossplatform 962 * @form 963 * @atomicservice 964 * @since 11 965 */ 966 (option?: GridRowOptions): GridRowAttribute; 967} 968 969/** 970 * Defines the GridRow attribute functions. 971 * 972 * @extends CommonMethod<GridRowAttribute> 973 * @syscap SystemCapability.ArkUI.ArkUI.Full 974 * @form 975 * @since 9 976 */ 977/** 978 * Defines the GridRow attribute functions. 979 * 980 * @extends CommonMethod<GridRowAttribute> 981 * @syscap SystemCapability.ArkUI.ArkUI.Full 982 * @crossplatform 983 * @form 984 * @since 10 985 */ 986/** 987 * Defines the GridRow attribute functions. 988 * 989 * @extends CommonMethod<GridRowAttribute> 990 * @syscap SystemCapability.ArkUI.ArkUI.Full 991 * @crossplatform 992 * @form 993 * @atomicservice 994 * @since 11 995 */ 996declare class GridRowAttribute extends CommonMethod<GridRowAttribute> { 997 /** 998 * Callback triggered when the breakpoint changes, breakpoints value can be xs, sm, md, lg, xl, xxl 999 * 1000 * @param { function } callback 1001 * @returns { GridRowAttribute } 1002 * @syscap SystemCapability.ArkUI.ArkUI.Full 1003 * @form 1004 * @since 9 1005 */ 1006 /** 1007 * Callback triggered when the breakpoint changes, breakpoints value can be xs, sm, md, lg, xl, xxl 1008 * 1009 * @param { function } callback 1010 * @returns { GridRowAttribute } 1011 * @syscap SystemCapability.ArkUI.ArkUI.Full 1012 * @crossplatform 1013 * @form 1014 * @since 10 1015 */ 1016 /** 1017 * Callback triggered when the breakpoint changes, breakpoints value can be xs, sm, md, lg, xl, xxl 1018 * 1019 * @param { function } callback 1020 * @returns { GridRowAttribute } 1021 * @syscap SystemCapability.ArkUI.ArkUI.Full 1022 * @crossplatform 1023 * @form 1024 * @atomicservice 1025 * @since 11 1026 */ 1027 onBreakpointChange(callback: (breakpoints: string) => void): GridRowAttribute; 1028 1029 /** 1030 * Cross axis alignment of each line in GridRow. 1031 * 1032 * @param { ItemAlign } value - element alignment 1033 * @returns { GridRowAttribute } 1034 * @syscap SystemCapability.ArkUI.ArkUI.Full 1035 * @crossplatform 1036 * @form 1037 * @since 10 1038 */ 1039 /** 1040 * Cross axis alignment of each line in GridRow. 1041 * 1042 * @param { ItemAlign } value - element alignment 1043 * @returns { GridRowAttribute } 1044 * @syscap SystemCapability.ArkUI.ArkUI.Full 1045 * @crossplatform 1046 * @form 1047 * @atomicservice 1048 * @since 11 1049 */ 1050 alignItems(value: ItemAlign): GridRowAttribute; 1051} 1052 1053/** 1054 * Defines GridRow Component. 1055 * 1056 * @syscap SystemCapability.ArkUI.ArkUI.Full 1057 * @form 1058 * @since 9 1059 */ 1060/** 1061 * Defines GridRow Component. 1062 * 1063 * @syscap SystemCapability.ArkUI.ArkUI.Full 1064 * @crossplatform 1065 * @form 1066 * @since 10 1067 */ 1068/** 1069 * Defines GridRow Component. 1070 * 1071 * @syscap SystemCapability.ArkUI.ArkUI.Full 1072 * @crossplatform 1073 * @form 1074 * @atomicservice 1075 * @since 11 1076 */ 1077declare const GridRow: GridRowInterface; 1078 1079/** 1080 * Defines GridRow Component instance. 1081 * 1082 * @syscap SystemCapability.ArkUI.ArkUI.Full 1083 * @form 1084 * @since 9 1085 */ 1086/** 1087 * Defines GridRow Component instance. 1088 * 1089 * @syscap SystemCapability.ArkUI.ArkUI.Full 1090 * @crossplatform 1091 * @form 1092 * @since 10 1093 */ 1094/** 1095 * Defines GridRow Component instance. 1096 * 1097 * @syscap SystemCapability.ArkUI.ArkUI.Full 1098 * @crossplatform 1099 * @form 1100 * @atomicservice 1101 * @since 11 1102 */ 1103declare const GridRowInstance: GridRowAttribute; 1104