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