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/** 22 * Provides the method of switching the cursor position. 23 * 24 * @extends TextContentControllerBase 25 * @since 8 26 */ 27/** 28 * Provides the method of switching the cursor position. 29 * 30 * @extends TextContentControllerBase 31 * @syscap SystemCapability.ArkUI.ArkUI.Full 32 * @crossplatform 33 * @since 10 34 */ 35/** 36 * Provides the method of switching the cursor position. 37 * 38 * @extends TextContentControllerBase 39 * @syscap SystemCapability.ArkUI.ArkUI.Full 40 * @crossplatform 41 * @atomicservice 42 * @since 11 43 */ 44declare class TextAreaController extends TextContentControllerBase { 45 /** 46 * constructor. 47 * 48 * @syscap SystemCapability.ArkUI.ArkUI.Full 49 * @since 8 50 */ 51 /** 52 * constructor. 53 * 54 * @syscap SystemCapability.ArkUI.ArkUI.Full 55 * @crossplatform 56 * @since 10 57 */ 58 /** 59 * constructor. 60 * 61 * @syscap SystemCapability.ArkUI.ArkUI.Full 62 * @crossplatform 63 * @atomicservice 64 * @since 11 65 */ 66 constructor(); 67 68 /** 69 * Called when the position of the insertion cursor is set. 70 * 71 * @param { number } value 72 * @syscap SystemCapability.ArkUI.ArkUI.Full 73 * @since 8 74 */ 75 /** 76 * Called when the position of the insertion cursor is set. 77 * 78 * @param { number } value 79 * @syscap SystemCapability.ArkUI.ArkUI.Full 80 * @crossplatform 81 * @since 10 82 */ 83 /** 84 * Called when the position of the insertion cursor is set. 85 * 86 * @param { number } value 87 * @syscap SystemCapability.ArkUI.ArkUI.Full 88 * @crossplatform 89 * @atomicservice 90 * @since 11 91 */ 92 caretPosition(value: number): void; 93 94 /** 95 * Text selection is achieved by specifying the start and end positions of the text. 96 * 97 * @param { number } selectionStart - The start position of the selected text. 98 * @param { number } selectionEnd - The end position of the selected text. 99 * @syscap SystemCapability.ArkUI.ArkUI.Full 100 * @crossplatform 101 * @since 10 102 */ 103 /** 104 * Text selection is achieved by specifying the start and end positions of the text. 105 * 106 * @param { number } selectionStart - The start position of the selected text. 107 * @param { number } selectionEnd - The end position of the selected text. 108 * @syscap SystemCapability.ArkUI.ArkUI.Full 109 * @crossplatform 110 * @atomicservice 111 * @since 11 112 */ 113 /** 114 * Text selection is achieved by specifying the start and end positions of the text. 115 * 116 * @param { number } selectionStart - The start position of the selected text. 117 * @param { number } selectionEnd - The end position of the selected text. 118 * @param { SelectionOptions } [options] - Indicates the options of the text selection. 119 * @syscap SystemCapability.ArkUI.ArkUI.Full 120 * @crossplatform 121 * @atomicservice 122 * @since 12 123 */ 124 setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void; 125 126 /** 127 * Exit edit state. 128 * 129 * @syscap SystemCapability.ArkUI.ArkUI.Full 130 * @crossplatform 131 * @since 10 132 */ 133 /** 134 * Exit edit state. 135 * 136 * @syscap SystemCapability.ArkUI.ArkUI.Full 137 * @crossplatform 138 * @atomicservice 139 * @since 11 140 */ 141 stopEditing(): void; 142} 143 144/** 145 * Defines the options of TextArea. 146 * 147 * @interface TextAreaOptions 148 * @syscap SystemCapability.ArkUI.ArkUI.Full 149 * @since 7 150 */ 151/** 152 * Defines the options of TextArea. 153 * 154 * @interface TextAreaOptions 155 * @syscap SystemCapability.ArkUI.ArkUI.Full 156 * @crossplatform 157 * @since 10 158 */ 159/** 160 * Defines the options of TextArea. 161 * 162 * @interface TextAreaOptions 163 * @syscap SystemCapability.ArkUI.ArkUI.Full 164 * @crossplatform 165 * @atomicservice 166 * @since 11 167 */ 168declare interface TextAreaOptions { 169 /** 170 * The place holder text string. 171 * 172 * @type { ?ResourceStr } 173 * @syscap SystemCapability.ArkUI.ArkUI.Full 174 * @since 7 175 */ 176 /** 177 * The place holder text string. 178 * 179 * @type { ?ResourceStr } 180 * @syscap SystemCapability.ArkUI.ArkUI.Full 181 * @crossplatform 182 * @since 10 183 */ 184 /** 185 * The place holder text string. 186 * 187 * @type { ?ResourceStr } 188 * @syscap SystemCapability.ArkUI.ArkUI.Full 189 * @crossplatform 190 * @atomicservice 191 * @since 11 192 */ 193 placeholder?: ResourceStr; 194 195 /** 196 * Sets the current value of TextArea. 197 * 198 * @type { ?ResourceStr } 199 * @syscap SystemCapability.ArkUI.ArkUI.Full 200 * @since 7 201 */ 202 /** 203 * Sets the current value of TextArea. 204 * 205 * @type { ?ResourceStr } 206 * @syscap SystemCapability.ArkUI.ArkUI.Full 207 * @crossplatform 208 * @since 10 209 */ 210 /** 211 * Sets the current value of TextArea. 212 * 213 * @type { ?ResourceStr } 214 * @syscap SystemCapability.ArkUI.ArkUI.Full 215 * @crossplatform 216 * @atomicservice 217 * @since 11 218 */ 219 text?: ResourceStr; 220 221 /** 222 * Called when the position of the insertion cursor is set. 223 * 224 * @type { ?TextAreaController } 225 * @syscap SystemCapability.ArkUI.ArkUI.Full 226 * @since 8 227 */ 228 /** 229 * Called when the position of the insertion cursor is set. 230 * 231 * @type { ?TextAreaController } 232 * @syscap SystemCapability.ArkUI.ArkUI.Full 233 * @crossplatform 234 * @since 10 235 */ 236 /** 237 * Called when the position of the insertion cursor is set. 238 * 239 * @type { ?TextAreaController } 240 * @syscap SystemCapability.ArkUI.ArkUI.Full 241 * @crossplatform 242 * @atomicservice 243 * @since 11 244 */ 245 controller?: TextAreaController; 246} 247 248/** 249 * Provides an interface for the multi-line text input component. 250 * 251 * @interface TextAreaInterface 252 * @syscap SystemCapability.ArkUI.ArkUI.Full 253 * @since 7 254 */ 255/** 256 * Provides an interface for the multi-line text input component. 257 * 258 * @interface TextAreaInterface 259 * @syscap SystemCapability.ArkUI.ArkUI.Full 260 * @crossplatform 261 * @since 10 262 */ 263/** 264 * Provides an interface for the multi-line text input component. 265 * 266 * @interface TextAreaInterface 267 * @syscap SystemCapability.ArkUI.ArkUI.Full 268 * @crossplatform 269 * @atomicservice 270 * @since 11 271 */ 272interface TextAreaInterface { 273 /** 274 * Called when writing multiple lines of text. 275 * 276 * @param { TextAreaOptions } value 277 * @returns { TextAreaAttribute } 278 * @syscap SystemCapability.ArkUI.ArkUI.Full 279 * @since 7 280 */ 281 /** 282 * Called when writing multiple lines of text. 283 * 284 * @param { TextAreaOptions } value 285 * @returns { TextAreaAttribute } 286 * @syscap SystemCapability.ArkUI.ArkUI.Full 287 * @crossplatform 288 * @since 10 289 */ 290 /** 291 * Called when writing multiple lines of text. 292 * 293 * @param { TextAreaOptions } value 294 * @returns { TextAreaAttribute } 295 * @syscap SystemCapability.ArkUI.ArkUI.Full 296 * @crossplatform 297 * @atomicservice 298 * @since 11 299 */ 300 (value?: TextAreaOptions): TextAreaAttribute; 301} 302 303/** 304 * Declare the type of input box 305 * 306 * @enum { number } 307 * @syscap SystemCapability.ArkUI.ArkUI.Full 308 * @crossplatform 309 * @since 11 310 */ 311/** 312 * Declare the type of input box 313 * 314 * @enum { number } 315 * @syscap SystemCapability.ArkUI.ArkUI.Full 316 * @crossplatform 317 * @atomicservice 318 * @since 12 319 */ 320declare enum TextAreaType { 321 /** 322 * Basic input mode. 323 * 324 * @syscap SystemCapability.ArkUI.ArkUI.Full 325 * @crossplatform 326 * @since 11 327 */ 328 /** 329 * Basic input mode. 330 * 331 * @syscap SystemCapability.ArkUI.ArkUI.Full 332 * @crossplatform 333 * @atomicservice 334 * @since 12 335 */ 336 NORMAL = 0, 337 338 /** 339 * Pure digital input mode. 340 * 341 * @syscap SystemCapability.ArkUI.ArkUI.Full 342 * @crossplatform 343 * @since 11 344 */ 345 /** 346 * Pure digital input mode. 347 * 348 * @syscap SystemCapability.ArkUI.ArkUI.Full 349 * @crossplatform 350 * @atomicservice 351 * @since 12 352 */ 353 NUMBER = 2, 354 355 /** 356 * Phone number entry mode. 357 * 358 * @syscap SystemCapability.ArkUI.ArkUI.Full 359 * @crossplatform 360 * @since 11 361 */ 362 /** 363 * Phone number entry mode. 364 * 365 * @syscap SystemCapability.ArkUI.ArkUI.Full 366 * @crossplatform 367 * @atomicservice 368 * @since 12 369 */ 370 PHONE_NUMBER = 3, 371 372 /** 373 * E-mail address input mode. 374 * 375 * @syscap SystemCapability.ArkUI.ArkUI.Full 376 * @crossplatform 377 * @since 11 378 */ 379 /** 380 * E-mail address input mode. 381 * 382 * @syscap SystemCapability.ArkUI.ArkUI.Full 383 * @crossplatform 384 * @atomicservice 385 * @since 12 386 */ 387 EMAIL = 5, 388 389 /** 390 * Number decimal entry mode. 391 * 392 * @syscap SystemCapability.ArkUI.ArkUI.Full 393 * @crossplatform 394 * @atomicservice 395 * @since 12 396 */ 397 NUMBER_DECIMAL = 12, 398 399 /** 400 * URL entry mode. 401 * 402 * @syscap SystemCapability.ArkUI.ArkUI.Full 403 * @crossplatform 404 * @atomicservice 405 * @since 12 406 */ 407 URL = 13, 408} 409 410/** 411 * Declare the content type of input box 412 * 413 * @enum { number } 414 * @syscap SystemCapability.ArkUI.ArkUI.Full 415 * @atomicservice 416 * @since 12 417 */ 418declare enum ContentType { 419 /** 420 * User name content type. 421 * 422 * @syscap SystemCapability.ArkUI.ArkUI.Full 423 * @atomicservice 424 * @since 12 425 */ 426 USER_NAME = 0, 427 428 /** 429 * Password content type. 430 * 431 * @syscap SystemCapability.ArkUI.ArkUI.Full 432 * @atomicservice 433 * @since 12 434 */ 435 PASSWORD = 1, 436 437 /** 438 * New password content type. 439 * 440 * @syscap SystemCapability.ArkUI.ArkUI.Full 441 * @atomicservice 442 * @since 12 443 */ 444 NEW_PASSWORD = 2, 445 446 /** 447 * Full street address content type. 448 * 449 * @syscap SystemCapability.ArkUI.ArkUI.Full 450 * @atomicservice 451 * @since 12 452 */ 453 FULL_STREET_ADDRESS = 3, 454 455 /** 456 * House number content type. 457 * 458 * @syscap SystemCapability.ArkUI.ArkUI.Full 459 * @atomicservice 460 * @since 12 461 */ 462 HOUSE_NUMBER = 4, 463 464 /** 465 * District address content type. 466 * 467 * @syscap SystemCapability.ArkUI.ArkUI.Full 468 * @atomicservice 469 * @since 12 470 */ 471 DISTRICT_ADDRESS = 5, 472 473 /** 474 * City address content type. 475 * 476 * @syscap SystemCapability.ArkUI.ArkUI.Full 477 * @atomicservice 478 * @since 12 479 */ 480 CITY_ADDRESS = 6, 481 482 /** 483 * Province address content type. 484 * 485 * @syscap SystemCapability.ArkUI.ArkUI.Full 486 * @atomicservice 487 * @since 12 488 */ 489 PROVINCE_ADDRESS = 7, 490 491 /** 492 * Country address content type. 493 * 494 * @syscap SystemCapability.ArkUI.ArkUI.Full 495 * @atomicservice 496 * @since 12 497 */ 498 COUNTRY_ADDRESS = 8, 499 500 /** 501 * Person full name content type. 502 * 503 * @syscap SystemCapability.ArkUI.ArkUI.Full 504 * @atomicservice 505 * @since 12 506 */ 507 PERSON_FULL_NAME = 9, 508 509 /** 510 * Person last name content type. 511 * 512 * @syscap SystemCapability.ArkUI.ArkUI.Full 513 * @atomicservice 514 * @since 12 515 */ 516 PERSON_LAST_NAME = 10, 517 518 /** 519 * Person first name content type. 520 * 521 * @syscap SystemCapability.ArkUI.ArkUI.Full 522 * @atomicservice 523 * @since 12 524 */ 525 PERSON_FIRST_NAME = 11, 526 527 /** 528 * Phone number content type. 529 * 530 * @syscap SystemCapability.ArkUI.ArkUI.Full 531 * @atomicservice 532 * @since 12 533 */ 534 PHONE_NUMBER = 12, 535 536 /** 537 * Phone country code content type. 538 * 539 * @syscap SystemCapability.ArkUI.ArkUI.Full 540 * @atomicservice 541 * @since 12 542 */ 543 PHONE_COUNTRY_CODE = 13, 544 545 /** 546 * Full phone number content type. 547 * 548 * @syscap SystemCapability.ArkUI.ArkUI.Full 549 * @atomicservice 550 * @since 12 551 */ 552 FULL_PHONE_NUMBER = 14, 553 554 /** 555 * Email address content type. 556 * 557 * @syscap SystemCapability.ArkUI.ArkUI.Full 558 * @atomicservice 559 * @since 12 560 */ 561 EMAIL_ADDRESS = 15, 562 563 /** 564 * Bank card number content type. 565 * 566 * @syscap SystemCapability.ArkUI.ArkUI.Full 567 * @atomicservice 568 * @since 12 569 */ 570 BANK_CARD_NUMBER = 16, 571 572 /** 573 * ID card number content type. 574 * 575 * @syscap SystemCapability.ArkUI.ArkUI.Full 576 * @atomicservice 577 * @since 12 578 */ 579 ID_CARD_NUMBER = 17, 580 581 /** 582 * Nickname content type. 583 * 584 * @syscap SystemCapability.ArkUI.ArkUI.Full 585 * @atomicservice 586 * @since 12 587 */ 588 NICKNAME = 23, 589 590 /** 591 * Detail info without street content type. 592 * 593 * @syscap SystemCapability.ArkUI.ArkUI.Full 594 * @atomicservice 595 * @since 12 596 */ 597 DETAIL_INFO_WITHOUT_STREET = 24, 598 599 /** 600 * Format address content type. 601 * 602 * @syscap SystemCapability.ArkUI.ArkUI.Full 603 * @atomicservice 604 * @since 12 605 */ 606 FORMAT_ADDRESS = 25 607} 608 609/** 610 * Defines the attribute functions of TextArea. 611 * 612 * @extends CommonMethod<TextAreaAttribute> 613 * @syscap SystemCapability.ArkUI.ArkUI.Full 614 * @since 7 615 */ 616/** 617 * Defines the attribute functions of TextArea. 618 * 619 * @extends CommonMethod<TextAreaAttribute> 620 * @syscap SystemCapability.ArkUI.ArkUI.Full 621 * @crossplatform 622 * @since 10 623 */ 624/** 625 * Defines the attribute functions of TextArea. 626 * 627 * @extends CommonMethod<TextAreaAttribute> 628 * @syscap SystemCapability.ArkUI.ArkUI.Full 629 * @crossplatform 630 * @atomicservice 631 * @since 11 632 */ 633declare class TextAreaAttribute extends CommonMethod<TextAreaAttribute> { 634 /** 635 * Called when the color of the placeholder is set. 636 * 637 * @param { ResourceColor } value 638 * @returns { TextAreaAttribute } 639 * @syscap SystemCapability.ArkUI.ArkUI.Full 640 * @since 7 641 */ 642 /** 643 * Called when the color of the placeholder is set. 644 * 645 * @param { ResourceColor } value 646 * @returns { TextAreaAttribute } 647 * @syscap SystemCapability.ArkUI.ArkUI.Full 648 * @crossplatform 649 * @since 10 650 */ 651 /** 652 * Called when the color of the placeholder is set. 653 * 654 * @param { ResourceColor } value 655 * @returns { TextAreaAttribute } 656 * @syscap SystemCapability.ArkUI.ArkUI.Full 657 * @crossplatform 658 * @atomicservice 659 * @since 11 660 */ 661 placeholderColor(value: ResourceColor): TextAreaAttribute; 662 663 /** 664 * Called when the font property of the placeholder is set. 665 * 666 * @param { Font } value 667 * @returns { TextAreaAttribute } 668 * @syscap SystemCapability.ArkUI.ArkUI.Full 669 * @since 7 670 */ 671 /** 672 * Called when the font property of the placeholder is set. 673 * 674 * @param { Font } value 675 * @returns { TextAreaAttribute } 676 * @syscap SystemCapability.ArkUI.ArkUI.Full 677 * @crossplatform 678 * @since 10 679 */ 680 /** 681 * Called when the font property of the placeholder is set. 682 * 683 * @param { Font } value 684 * @returns { TextAreaAttribute } 685 * @syscap SystemCapability.ArkUI.ArkUI.Full 686 * @crossplatform 687 * @atomicservice 688 * @since 11 689 */ 690 placeholderFont(value: Font): TextAreaAttribute; 691 692 /** 693 * Called when the type of soft keyboard input button is set. 694 * 695 * @param { EnterKeyType } value the type of soft keyboard 696 * @returns { TextAreaAttribute } 697 * @syscap SystemCapability.ArkUI.ArkUI.Full 698 * @crossplatform 699 * @since 11 700 */ 701 /** 702 * Called when the type of soft keyboard input button is set. 703 * 704 * @param { EnterKeyType } value the type of soft keyboard 705 * @returns { TextAreaAttribute } 706 * @syscap SystemCapability.ArkUI.ArkUI.Full 707 * @crossplatform 708 * @atomicservice 709 * @since 12 710 */ 711 enterKeyType(value: EnterKeyType): TextAreaAttribute; 712 713 /** 714 * Called when the alignment of the contents of a multiline text box is set. 715 * 716 * @param { TextAlign } value 717 * @returns { TextAreaAttribute } 718 * @syscap SystemCapability.ArkUI.ArkUI.Full 719 * @since 7 720 */ 721 /** 722 * Called when the alignment of the contents of a multiline text box is set. 723 * 724 * @param { TextAlign } value 725 * @returns { TextAreaAttribute } 726 * @syscap SystemCapability.ArkUI.ArkUI.Full 727 * @crossplatform 728 * @since 10 729 */ 730 /** 731 * Called when the alignment of the contents of a multiline text box is set. 732 * 733 * @param { TextAlign } value 734 * @returns { TextAreaAttribute } 735 * @syscap SystemCapability.ArkUI.ArkUI.Full 736 * @crossplatform 737 * @atomicservice 738 * @since 11 739 */ 740 textAlign(value: TextAlign): TextAreaAttribute; 741 742 /** 743 * Called when the insertion cursor color is set. 744 * 745 * @param { ResourceColor } value 746 * @returns { TextAreaAttribute } 747 * @syscap SystemCapability.ArkUI.ArkUI.Full 748 * @since 7 749 */ 750 /** 751 * Called when the insertion cursor color is set. 752 * 753 * @param { ResourceColor } value 754 * @returns { TextAreaAttribute } 755 * @syscap SystemCapability.ArkUI.ArkUI.Full 756 * @crossplatform 757 * @since 10 758 */ 759 /** 760 * Called when the insertion cursor color is set. 761 * 762 * @param { ResourceColor } value 763 * @returns { TextAreaAttribute } 764 * @syscap SystemCapability.ArkUI.ArkUI.Full 765 * @crossplatform 766 * @atomicservice 767 * @since 11 768 */ 769 caretColor(value: ResourceColor): TextAreaAttribute; 770 771 /** 772 * Called when the font color is set. 773 * 774 * @param { ResourceColor } value 775 * @returns { TextAreaAttribute } 776 * @syscap SystemCapability.ArkUI.ArkUI.Full 777 * @since 7 778 */ 779 /** 780 * Called when the font color is set. 781 * 782 * @param { ResourceColor } value 783 * @returns { TextAreaAttribute } 784 * @syscap SystemCapability.ArkUI.ArkUI.Full 785 * @crossplatform 786 * @since 10 787 */ 788 /** 789 * Called when the font color is set. 790 * 791 * @param { ResourceColor } value 792 * @returns { TextAreaAttribute } 793 * @syscap SystemCapability.ArkUI.ArkUI.Full 794 * @crossplatform 795 * @atomicservice 796 * @since 11 797 */ 798 fontColor(value: ResourceColor): TextAreaAttribute; 799 800 /** 801 * Called when the font size is set. 802 * 803 * @param { Length } value 804 * @returns { TextAreaAttribute } 805 * @syscap SystemCapability.ArkUI.ArkUI.Full 806 * @since 7 807 */ 808 /** 809 * Called when the font size is set. 810 * 811 * @param { Length } value 812 * @returns { TextAreaAttribute } 813 * @syscap SystemCapability.ArkUI.ArkUI.Full 814 * @crossplatform 815 * @since 10 816 */ 817 /** 818 * Called when the font size is set. 819 * 820 * @param { Length } value 821 * @returns { TextAreaAttribute } 822 * @syscap SystemCapability.ArkUI.ArkUI.Full 823 * @crossplatform 824 * @atomicservice 825 * @since 11 826 */ 827 fontSize(value: Length): TextAreaAttribute; 828 829 /** 830 * Called when the font style of a font is set. 831 * 832 * @param { FontStyle } value 833 * @returns { TextAreaAttribute } 834 * @syscap SystemCapability.ArkUI.ArkUI.Full 835 * @since 7 836 */ 837 /** 838 * Called when the font style of a font is set. 839 * 840 * @param { FontStyle } value 841 * @returns { TextAreaAttribute } 842 * @syscap SystemCapability.ArkUI.ArkUI.Full 843 * @crossplatform 844 * @since 10 845 */ 846 /** 847 * Called when the font style of a font is set. 848 * 849 * @param { FontStyle } value 850 * @returns { TextAreaAttribute } 851 * @syscap SystemCapability.ArkUI.ArkUI.Full 852 * @crossplatform 853 * @atomicservice 854 * @since 11 855 */ 856 fontStyle(value: FontStyle): TextAreaAttribute; 857 858 /** 859 * Called when the font weight is set. 860 * 861 * @param { number | FontWeight | string } value 862 * @returns { TextAreaAttribute } 863 * @syscap SystemCapability.ArkUI.ArkUI.Full 864 * @since 7 865 */ 866 /** 867 * Called when the font weight is set. 868 * 869 * @param { number | FontWeight | string } value 870 * @returns { TextAreaAttribute } 871 * @syscap SystemCapability.ArkUI.ArkUI.Full 872 * @crossplatform 873 * @since 10 874 */ 875 /** 876 * Called when the font weight is set. 877 * 878 * @param { number | FontWeight | string } value 879 * @returns { TextAreaAttribute } 880 * @syscap SystemCapability.ArkUI.ArkUI.Full 881 * @crossplatform 882 * @atomicservice 883 * @since 11 884 */ 885 fontWeight(value: number | FontWeight | string): TextAreaAttribute; 886 887 /** 888 * Called when the font list of text is set. 889 * 890 * @param { ResourceStr } value 891 * @returns { TextAreaAttribute } 892 * @syscap SystemCapability.ArkUI.ArkUI.Full 893 * @since 7 894 */ 895 /** 896 * Called when the font list of text is set. 897 * 898 * @param { ResourceStr } value 899 * @returns { TextAreaAttribute } 900 * @syscap SystemCapability.ArkUI.ArkUI.Full 901 * @crossplatform 902 * @since 10 903 */ 904 /** 905 * Called when the font list of text is set. 906 * 907 * @param { ResourceStr } value 908 * @returns { TextAreaAttribute } 909 * @syscap SystemCapability.ArkUI.ArkUI.Full 910 * @crossplatform 911 * @atomicservice 912 * @since 11 913 */ 914 fontFamily(value: ResourceStr): TextAreaAttribute; 915 916 /** 917 * Called when the overflow mode of the font is set. 918 * 919 * @param { TextOverflow } value 920 * @returns { TextAreaAttribute } 921 * @syscap SystemCapability.ArkUI.ArkUI.Full 922 * @crossplatform 923 * @atomicservice 924 * @since 12 925 */ 926 textOverflow(value: TextOverflow): TextAreaAttribute; 927 928 /** 929 * Specify the indentation of the first line in a text-block. 930 * 931 * @param { Dimension } value - The length of text indent. 932 * @returns { TextAreaAttribute } The attribute of the text. 933 * @syscap SystemCapability.ArkUI.ArkUI.Full 934 * @crossplatform 935 * @atomicservice 936 * @since 12 937 */ 938 textIndent(value: Dimension): TextAreaAttribute; 939 940 /** 941 * Called when the inputFilter of text is set. 942 * 943 * @param { ResourceStr } value 944 * @param { function } error 945 * @returns { TextAreaAttribute } 946 * @syscap SystemCapability.ArkUI.ArkUI.Full 947 * @since 8 948 */ 949 /** 950 * Called when the inputFilter of text is set. 951 * 952 * @param { ResourceStr } value 953 * @param { function } error 954 * @returns { TextAreaAttribute } 955 * @syscap SystemCapability.ArkUI.ArkUI.Full 956 * @crossplatform 957 * @since 10 958 */ 959 /** 960 * Called when the inputFilter of text is set. 961 * 962 * @param { ResourceStr } value 963 * @param { function } error 964 * @returns { TextAreaAttribute } 965 * @syscap SystemCapability.ArkUI.ArkUI.Full 966 * @crossplatform 967 * @atomicservice 968 * @since 11 969 */ 970 inputFilter(value: ResourceStr, error?: (value: string) => void): TextAreaAttribute; 971 972 /** 973 * Define the caret style of the text input 974 * 975 * @param { CaretStyle } value 976 * @returns { TextAreaAttribute } 977 * @syscap SystemCapability.ArkUI.ArkUI.Full 978 * @crossplatform 979 * @atomicservice 980 * @since 12 981 */ 982 caretStyle(value: CaretStyle): TextAreaAttribute; 983 984 /** 985 * Define the text selected background color of the text input. 986 * 987 * @param { ResourceColor } value 988 * @returns { TextAreaAttribute } 989 * @syscap SystemCapability.ArkUI.ArkUI.Full 990 * @crossplatform 991 * @atomicservice 992 * @since 12 993 */ 994 selectedBackgroundColor(value: ResourceColor): TextAreaAttribute; 995 996 /** 997 * Called when submitted. 998 * 999 * @param { function } callback 1000 * @returns { TextAreaAttribute } 1001 * @syscap SystemCapability.ArkUI.ArkUI.Full 1002 * @crossplatform 1003 * @since 11 1004 */ 1005 /** 1006 * Called when submitted. 1007 * 1008 * @param { function } callback 1009 * @returns { TextAreaAttribute } 1010 * @syscap SystemCapability.ArkUI.ArkUI.Full 1011 * @crossplatform 1012 * @atomicservice 1013 * @since 12 1014 */ 1015 onSubmit(callback: (enterKey: EnterKeyType) => void): TextAreaAttribute; 1016 1017 /** 1018 * Called when the input changes. 1019 * 1020 * @param { function } callback 1021 * @returns { TextAreaAttribute } 1022 * @syscap SystemCapability.ArkUI.ArkUI.Full 1023 * @since 7 1024 */ 1025 /** 1026 * Called when the input changes. 1027 * 1028 * @param { function } callback 1029 * @returns { TextAreaAttribute } 1030 * @syscap SystemCapability.ArkUI.ArkUI.Full 1031 * @crossplatform 1032 * @since 10 1033 */ 1034 /** 1035 * Called when the input changes. 1036 * 1037 * @param { function } callback 1038 * @returns { TextAreaAttribute } 1039 * @syscap SystemCapability.ArkUI.ArkUI.Full 1040 * @crossplatform 1041 * @atomicservice 1042 * @since 11 1043 */ 1044 /** 1045 * Called when the input changes. 1046 * 1047 * @param { EditableTextOnChangeCallback } callback 1048 * @returns { TextAreaAttribute } 1049 * @syscap SystemCapability.ArkUI.ArkUI.Full 1050 * @crossplatform 1051 * @atomicservice 1052 * @since 12 1053 */ 1054 onChange(callback: EditableTextOnChangeCallback): TextAreaAttribute; 1055 1056 /** 1057 * Called when the text selection changes. 1058 * 1059 * @param { function } callback - callback of the listened event. 1060 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1061 * @syscap SystemCapability.ArkUI.ArkUI.Full 1062 * @crossplatform 1063 * @since 10 1064 */ 1065 /** 1066 * Called when the text selection changes. 1067 * 1068 * @param { function } callback - callback of the listened event. 1069 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1070 * @syscap SystemCapability.ArkUI.ArkUI.Full 1071 * @crossplatform 1072 * @atomicservice 1073 * @since 11 1074 */ 1075 onTextSelectionChange(callback: (selectionStart: number, selectionEnd: number) => void): TextAreaAttribute; 1076 1077 /** 1078 * Called when the content scrolls. 1079 * 1080 * @param { function } callback - callback of the listened event. 1081 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1082 * @syscap SystemCapability.ArkUI.ArkUI.Full 1083 * @crossplatform 1084 * @since 10 1085 */ 1086 /** 1087 * Called when the content scrolls. 1088 * 1089 * @param { function } callback - callback of the listened event. 1090 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1091 * @syscap SystemCapability.ArkUI.ArkUI.Full 1092 * @crossplatform 1093 * @atomicservice 1094 * @since 11 1095 */ 1096 onContentScroll(callback: (totalOffsetX: number, totalOffsetY: number) => void): TextAreaAttribute; 1097 1098 /** 1099 * Called when judging whether the text editing change finished. 1100 * 1101 * @param { function } callback - Triggered when the text area status changes. 1102 * If the value of isEditing is true, text area is in progress. 1103 * @returns { TextAreaAttribute } 1104 * @syscap SystemCapability.ArkUI.ArkUI.Full 1105 * @crossplatform 1106 * @since 10 1107 */ 1108 /** 1109 * Called when judging whether the text editing change finished. 1110 * 1111 * @param { function } callback - Triggered when the text area status changes. 1112 * If the value of isEditing is true, text area is in progress. 1113 * @returns { TextAreaAttribute } 1114 * @syscap SystemCapability.ArkUI.ArkUI.Full 1115 * @crossplatform 1116 * @atomicservice 1117 * @since 11 1118 */ 1119 onEditChange(callback: (isEditing: boolean) => void): TextAreaAttribute; 1120 1121 /** 1122 * Called when using the Clipboard menu 1123 * 1124 * @param { function } callback 1125 * @returns { TextAreaAttribute } 1126 * @syscap SystemCapability.ArkUI.ArkUI.Full 1127 * @since 8 1128 */ 1129 /** 1130 * Called when using the Clipboard menu 1131 * 1132 * @param { function } callback 1133 * @returns { TextAreaAttribute } 1134 * @syscap SystemCapability.ArkUI.ArkUI.Full 1135 * @crossplatform 1136 * @since 10 1137 */ 1138 /** 1139 * Called when using the Clipboard menu 1140 * 1141 * @param { function } callback 1142 * @returns { TextAreaAttribute } 1143 * @syscap SystemCapability.ArkUI.ArkUI.Full 1144 * @crossplatform 1145 * @atomicservice 1146 * @since 11 1147 */ 1148 onCopy(callback: (value: string) => void): TextAreaAttribute; 1149 1150 /** 1151 * Called when using the Clipboard menu 1152 * 1153 * @param { function } callback 1154 * @returns { TextAreaAttribute } 1155 * @syscap SystemCapability.ArkUI.ArkUI.Full 1156 * @since 8 1157 */ 1158 /** 1159 * Called when using the Clipboard menu 1160 * 1161 * @param { function } callback 1162 * @returns { TextAreaAttribute } 1163 * @syscap SystemCapability.ArkUI.ArkUI.Full 1164 * @crossplatform 1165 * @since 10 1166 */ 1167 /** 1168 * Called when using the Clipboard menu 1169 * 1170 * @param { function } callback 1171 * @returns { TextAreaAttribute } 1172 * @syscap SystemCapability.ArkUI.ArkUI.Full 1173 * @crossplatform 1174 * @atomicservice 1175 * @since 11 1176 */ 1177 onCut(callback: (value: string) => void): TextAreaAttribute; 1178 1179 /** 1180 * Called when using the Clipboard menu 1181 * 1182 * @param { function } callback 1183 * @returns { TextAreaAttribute } 1184 * @syscap SystemCapability.ArkUI.ArkUI.Full 1185 * @since 7 1186 */ 1187 /** 1188 * Called when using the Clipboard menu 1189 * 1190 * @param { function } callback 1191 * @returns { TextAreaAttribute } 1192 * @syscap SystemCapability.ArkUI.ArkUI.Full 1193 * @crossplatform 1194 * @since 10 1195 */ 1196 /** 1197 * Called when using the Clipboard menu 1198 * 1199 * @param { function } callback 1200 * Executed when a paste operation is performed. 1201 * { string } value - The text content to be pasted. 1202 * { PasteEvent } event - The user-defined paste event. 1203 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1204 * @syscap SystemCapability.ArkUI.ArkUI.Full 1205 * @crossplatform 1206 * @atomicservice 1207 * @since 11 1208 */ 1209 onPaste(callback: (value: string, event: PasteEvent) => void): TextAreaAttribute; 1210 1211 /** 1212 * Called when the copy option is set. 1213 * 1214 * @param { CopyOptions } value 1215 * @returns { TextAreaAttribute } 1216 * @syscap SystemCapability.ArkUI.ArkUI.Full 1217 * @since 9 1218 */ 1219 /** 1220 * Called when the copy option is set. 1221 * 1222 * @param { CopyOptions } value 1223 * @returns { TextAreaAttribute } 1224 * @syscap SystemCapability.ArkUI.ArkUI.Full 1225 * @crossplatform 1226 * @since 10 1227 */ 1228 /** 1229 * Called when the copy option is set. 1230 * 1231 * @param { CopyOptions } value 1232 * @returns { TextAreaAttribute } 1233 * @syscap SystemCapability.ArkUI.ArkUI.Full 1234 * @crossplatform 1235 * @atomicservice 1236 * @since 11 1237 */ 1238 copyOption(value: CopyOptions): TextAreaAttribute; 1239 1240 /** 1241 * Sets whether request keyboard or not when on focus. 1242 * 1243 * @param { boolean } value 1244 * @returns { TextAreaAttribute } Returns the instance of the TextAreaAttribute. 1245 * @syscap SystemCapability.ArkUI.ArkUI.Full 1246 * @crossplatform 1247 * @since 10 1248 */ 1249 /** 1250 * Sets whether request keyboard or not when on focus. 1251 * 1252 * @param { boolean } value 1253 * @returns { TextAreaAttribute } Returns the instance of the TextAreaAttribute. 1254 * @syscap SystemCapability.ArkUI.ArkUI.Full 1255 * @crossplatform 1256 * @atomicservice 1257 * @since 11 1258 */ 1259 enableKeyboardOnFocus(value: boolean): TextAreaAttribute; 1260 1261 /** 1262 * Define the max length content of the text area. 1263 * 1264 * @param { number } value 1265 * @returns { TextAreaAttribute } 1266 * @syscap SystemCapability.ArkUI.ArkUI.Full 1267 * @since 10 1268 */ 1269 /** 1270 * Define the max length content of the text area. 1271 * 1272 * @param { number } value 1273 * @returns { TextAreaAttribute } 1274 * @syscap SystemCapability.ArkUI.ArkUI.Full 1275 * @crossplatform 1276 * @atomicservice 1277 * @since 11 1278 */ 1279 maxLength(value: number): TextAreaAttribute; 1280 1281 /** 1282 * Define show counter of the text area. 1283 * 1284 * @param { boolean } value 1285 * @returns { TextAreaAttribute } 1286 * @syscap SystemCapability.ArkUI.ArkUI.Full 1287 * @since 10 1288 */ 1289 /** 1290 * Define show counter of the text area. 1291 * 1292 * @param { boolean } value - Set showcounter of the text area. 1293 * @param { InputCounterOptions } options - Set the percentage of counter. 1294 * @returns { TextAreaAttribute } 1295 * @syscap SystemCapability.ArkUI.ArkUI.Full 1296 * @crossplatform 1297 * @atomicservice 1298 * @since 11 1299 */ 1300 showCounter(value: boolean, options?: InputCounterOptions): TextAreaAttribute; 1301 1302 /** 1303 * Define style of the text area. 1304 * 1305 * @param { TextContentStyle } value 1306 * @returns { TextAreaAttribute } 1307 * @syscap SystemCapability.ArkUI.ArkUI.Full 1308 * @since 10 1309 */ 1310 /** 1311 * Define style of the text area. 1312 * 1313 * @param { TextContentStyle } value 1314 * @returns { TextAreaAttribute } 1315 * @syscap SystemCapability.ArkUI.ArkUI.Full 1316 * @crossplatform 1317 * @atomicservice 1318 * @since 11 1319 */ 1320 style(value: TextContentStyle): TextAreaAttribute; 1321 1322 /** 1323 * Define bar state of the text area. 1324 * 1325 * @param { BarState } value 1326 * @returns { TextAreaAttribute } 1327 * @syscap SystemCapability.ArkUI.ArkUI.Full 1328 * @since 10 1329 */ 1330 /** 1331 * Define bar state of the text area. 1332 * 1333 * @param { BarState } value 1334 * @returns { TextAreaAttribute } 1335 * @syscap SystemCapability.ArkUI.ArkUI.Full 1336 * @atomicservice 1337 * @since 11 1338 */ 1339 barState(value: BarState): TextAreaAttribute; 1340 1341 /** 1342 * Controls whether the selection menu pops up. 1343 * 1344 * @param { boolean } value 1345 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1346 * @syscap SystemCapability.ArkUI.ArkUI.Full 1347 * @crossplatform 1348 * @since 10 1349 */ 1350 /** 1351 * Controls whether the selection menu pops up. 1352 * 1353 * @param { boolean } value 1354 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1355 * @syscap SystemCapability.ArkUI.ArkUI.Full 1356 * @crossplatform 1357 * @atomicservice 1358 * @since 11 1359 */ 1360 selectionMenuHidden(value: boolean): TextAreaAttribute; 1361 1362 /** 1363 * Called when the minimum font size of the font is set. 1364 * 1365 * @param { number | string | Resource } value 1366 * @returns { TextAreaAttribute } 1367 * @syscap SystemCapability.ArkUI.ArkUI.Full 1368 * @crossplatform 1369 * @atomicservice 1370 * @since 12 1371 */ 1372 minFontSize(value: number | string | Resource): TextAreaAttribute; 1373 1374 /** 1375 * Called when the maximum font size of the font is set. 1376 * 1377 * @param { number | string | Resource } value 1378 * @returns { TextAreaAttribute } 1379 * @syscap SystemCapability.ArkUI.ArkUI.Full 1380 * @crossplatform 1381 * @atomicservice 1382 * @since 12 1383 */ 1384 maxFontSize(value: number | string | Resource): TextAreaAttribute; 1385 1386 /** 1387 * Called when the height adaptive policy is set. 1388 * 1389 * @param { TextHeightAdaptivePolicy } value - The height adaptive policy. 1390 * @returns { TextAreaAttribute } 1391 * @syscap SystemCapability.ArkUI.ArkUI.Full 1392 * @crossplatform 1393 * @atomicservice 1394 * @since 12 1395 */ 1396 heightAdaptivePolicy(value: TextHeightAdaptivePolicy): TextAreaAttribute; 1397 1398 /** 1399 * Define max lines of the text area. 1400 * 1401 * @param { number } value 1402 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1403 * @syscap SystemCapability.ArkUI.ArkUI.Full 1404 * @since 10 1405 */ 1406 /** 1407 * Define max lines of the text area. 1408 * 1409 * @param { number } value 1410 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1411 * @syscap SystemCapability.ArkUI.ArkUI.Full 1412 * @crossplatform 1413 * @atomicservice 1414 * @since 11 1415 */ 1416 maxLines(value: number): TextAreaAttribute; 1417 1418 /** 1419 * Set the word break type. 1420 * 1421 * @param { WordBreak } value - The word break type. 1422 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1423 * @syscap SystemCapability.ArkUI.ArkUI.Full 1424 * @crossplatform 1425 * @atomicservice 1426 * @since 12 1427 */ 1428 wordBreak(value: WordBreak): TextAreaAttribute; 1429 1430 /** 1431 * Set the text line break strategy type. 1432 * 1433 * @param { LineBreakStrategy } strategy - The text line break strategy type. 1434 * @returns { TextAreaAttribute } The attribute of the TextAreaAttribute. 1435 * @syscap SystemCapability.ArkUI.ArkUI.Full 1436 * @crossplatform 1437 * @atomicservice 1438 * @since 12 1439 */ 1440 lineBreakStrategy(strategy: LineBreakStrategy): TextAreaAttribute; 1441 1442 /** 1443 * Define custom keyboard of the text area. 1444 * 1445 * @param { CustomBuilder } value 1446 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1447 * @syscap SystemCapability.ArkUI.ArkUI.Full 1448 * @since 10 1449 */ 1450 /** 1451 * Define custom keyboard of the text area. 1452 * 1453 * @param { CustomBuilder } value 1454 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1455 * @syscap SystemCapability.ArkUI.ArkUI.Full 1456 * @crossplatform 1457 * @atomicservice 1458 * @since 11 1459 */ 1460 /** 1461 * Define custom keyboard of the text area. 1462 * 1463 * @param { CustomBuilder } value - Set up a custom keyboard of TextArea 1464 * @param { KeyboardOptions } [options] - Indicates the custom keyboard options of TextArea 1465 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1466 * @syscap SystemCapability.ArkUI.ArkUI.Full 1467 * @crossplatform 1468 * @atomicservice 1469 * @since 12 1470 */ 1471 customKeyboard(value: CustomBuilder, options?: KeyboardOptions): TextAreaAttribute; 1472 1473 /** 1474 * Called when the text decoration of the text is set. 1475 * 1476 * @param { TextDecorationOptions } value 1477 * @returns { TextAreaAttribute } 1478 * @syscap SystemCapability.ArkUI.ArkUI.Full 1479 * @crossplatform 1480 * @atomicservice 1481 * @since 12 1482 */ 1483 decoration(value: TextDecorationOptions): TextAreaAttribute; 1484 1485 /** 1486 * Called when the distance between text fonts is set. 1487 * 1488 * @param { number | string | Resource } value 1489 * @returns { TextAreaAttribute } 1490 * @syscap SystemCapability.ArkUI.ArkUI.Full 1491 * @crossplatform 1492 * @atomicservice 1493 * @since 12 1494 */ 1495 letterSpacing(value: number | string | Resource): TextAreaAttribute; 1496 1497 /** 1498 * Set font line spacing. 1499 * 1500 * @param { LengthMetrics } value 1501 * @returns { TextAreaAttribute } 1502 * @syscap SystemCapability.ArkUI.ArkUI.Full 1503 * @crossplatform 1504 * @atomicservice 1505 * @since 12 1506 */ 1507 lineSpacing(value: LengthMetrics): TextAreaAttribute; 1508 1509 /** 1510 * Called when the line height of the font is set. 1511 * 1512 * @param { number | string | Resource } value 1513 * @returns { TextAreaAttribute } 1514 * @syscap SystemCapability.ArkUI.ArkUI.Full 1515 * @crossplatform 1516 * @atomicservice 1517 * @since 12 1518 */ 1519 lineHeight(value: number | string | Resource): TextAreaAttribute; 1520 1521 /** 1522 * Called when the input type is set. 1523 * 1524 * @param { TextAreaType } value 1525 * @returns { TextAreaAttribute } 1526 * @syscap SystemCapability.ArkUI.ArkUI.Full 1527 * @crossplatform 1528 * @since 11 1529 */ 1530 /** 1531 * Called when the input type is set. 1532 * 1533 * @param { TextAreaType } value 1534 * @returns { TextAreaAttribute } 1535 * @syscap SystemCapability.ArkUI.ArkUI.Full 1536 * @crossplatform 1537 * @atomicservice 1538 * @since 12 1539 */ 1540 type(value: TextAreaType): TextAreaAttribute; 1541 1542 /** 1543 * Sets whether enable auto fill or not. 1544 * 1545 * @param { boolean } value - Indicates the flag whether autofill is enabled. 1546 * @returns { TextAreaAttribute } 1547 * @syscap SystemCapability.ArkUI.ArkUI.Full 1548 * @atomicservice 1549 * @since 12 1550 */ 1551 enableAutoFill(value: boolean): TextAreaAttribute; 1552 1553 /** 1554 * Called when the auto fill type is set. 1555 * 1556 * @param { ContentType } contentType - Indicates autofill type. 1557 * @returns { TextAreaAttribute } 1558 * @syscap SystemCapability.ArkUI.ArkUI.Full 1559 * @atomicservice 1560 * @since 12 1561 */ 1562 contentType(contentType: ContentType): TextAreaAttribute; 1563 1564 /** 1565 * Set font feature. 1566 * 1567 * @param { string } value - The fontFeature. 1568 * normal | <feature-tag-value>, 1569 * where <feature-tag-value> = <string> [ <integer> | on | off ], like: "ss01" 0 1570 * the values of <feature-tag-value> reference to doc of TextArea component 1571 * number of <feature-tag-value> can be single or multiple, and separated by comma ','. 1572 * @returns { TextAreaAttribute } 1573 * @syscap SystemCapability.ArkUI.ArkUI.Full 1574 * @crossplatform 1575 * @atomicservice 1576 * @since 12 1577 */ 1578 fontFeature(value: string): TextAreaAttribute; 1579 1580 /** 1581 * Get text value information when about to input. 1582 * 1583 * @param { Callback<InsertValue, boolean> } callback - The triggered function when text content is about to insert. 1584 * @returns { TextAreaAttribute } 1585 * @syscap SystemCapability.ArkUI.ArkUI.Full 1586 * @crossplatform 1587 * @atomicservice 1588 * @since 12 1589 */ 1590 onWillInsert(callback: Callback<InsertValue, boolean>): TextAreaAttribute; 1591 1592 /** 1593 * Get text value information when completed input. 1594 * 1595 * @param { Callback<InsertValue> } callback - The triggered function when text content has been inserted. 1596 * @returns { TextAreaAttribute } 1597 * @syscap SystemCapability.ArkUI.ArkUI.Full 1598 * @crossplatform 1599 * @atomicservice 1600 * @since 12 1601 */ 1602 onDidInsert(callback: Callback<InsertValue>): TextAreaAttribute; 1603 1604 /** 1605 * Get text value information when about to delete. 1606 * 1607 * @param { Callback<DeleteValue, boolean> } callback - The triggered function when text content is about to delete. 1608 * @returns { TextAreaAttribute } 1609 * @syscap SystemCapability.ArkUI.ArkUI.Full 1610 * @crossplatform 1611 * @atomicservice 1612 * @since 12 1613 */ 1614 onWillDelete(callback: Callback<DeleteValue, boolean>): TextAreaAttribute; 1615 1616 /** 1617 * Get text value information when the deletion has been completed 1618 * 1619 * @param { Callback<DeleteValue> } callback - The triggered function when text content has been deleted. 1620 * @returns { TextAreaAttribute } 1621 * @syscap SystemCapability.ArkUI.ArkUI.Full 1622 * @crossplatform 1623 * @atomicservice 1624 * @since 12 1625 */ 1626 onDidDelete(callback: Callback<DeleteValue>): TextAreaAttribute; 1627 1628 /** 1629 * Set the custom text menu. 1630 * 1631 * @param { EditMenuOptions } editMenu - Customize text menu options. 1632 * @returns { TextAreaAttribute } 1633 * @syscap SystemCapability.ArkUI.ArkUI.Full 1634 * @crossplatform 1635 * @atomicservice 1636 * @since 12 1637 */ 1638 editMenuOptions(editMenu: EditMenuOptions): TextAreaAttribute; 1639 1640 /** 1641 * Define the preview text mode of the text input. 1642 * 1643 * @param { boolean } enable - Indicates the preview text mode. 1644 * @returns { TextAreaAttribute } 1645 * @syscap SystemCapability.ArkUI.ArkUI.Full 1646 * @crossplatform 1647 * @atomicservice 1648 * @since 12 1649 */ 1650 enablePreviewText(enable: boolean): TextAreaAttribute; 1651 1652 /** 1653 * Enable or disable haptic feedback. 1654 * 1655 * @param { boolean } isEnabled - Default value is true, set false to disable haptic feedback. 1656 * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. 1657 * @syscap SystemCapability.ArkUI.ArkUI.Full 1658 * @crossplatform 1659 * @atomicservice 1660 * @since 13 1661 */ 1662 enableHapticFeedback(isEnabled: boolean): TextAreaAttribute; 1663} 1664 1665/** 1666 * Defines TextArea Component. 1667 * 1668 * @syscap SystemCapability.ArkUI.ArkUI.Full 1669 * @since 7 1670 */ 1671/** 1672 * Defines TextArea Component. 1673 * 1674 * @syscap SystemCapability.ArkUI.ArkUI.Full 1675 * @crossplatform 1676 * @since 10 1677 */ 1678/** 1679 * Defines TextArea Component. 1680 * 1681 * @syscap SystemCapability.ArkUI.ArkUI.Full 1682 * @crossplatform 1683 * @atomicservice 1684 * @since 11 1685 */ 1686declare const TextArea: TextAreaInterface; 1687 1688/** 1689 * Defines TextArea Component instance. 1690 * 1691 * @syscap SystemCapability.ArkUI.ArkUI.Full 1692 * @since 7 1693 */ 1694/** 1695 * Defines TextArea Component instance. 1696 * 1697 * @syscap SystemCapability.ArkUI.ArkUI.Full 1698 * @crossplatform 1699 * @since 10 1700 */ 1701/** 1702 * Defines TextArea Component instance. 1703 * 1704 * @syscap SystemCapability.ArkUI.ArkUI.Full 1705 * @crossplatform 1706 * @atomicservice 1707 * @since 11 1708 */ 1709declare const TextAreaInstance: TextAreaAttribute; 1710