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 * The declare of selectOption. 23 * 24 * @interface SelectOption 25 * @syscap SystemCapability.ArkUI.ArkUI.Full 26 * @since 8 27 */ 28/** 29 * The declare of selectOption. 30 * 31 * @interface SelectOption 32 * @syscap SystemCapability.ArkUI.ArkUI.Full 33 * @crossplatform 34 * @since 10 35 */ 36/** 37 * The declare of selectOption. 38 * 39 * @interface SelectOption 40 * @syscap SystemCapability.ArkUI.ArkUI.Full 41 * @crossplatform 42 * @atomicservice 43 * @since 11 44 */ 45declare interface SelectOption { 46 /** 47 * Option string. 48 * 49 * @type { ResourceStr } 50 * @syscap SystemCapability.ArkUI.ArkUI.Full 51 * @since 8 52 */ 53 /** 54 * Option string. 55 * 56 * @type { ResourceStr } 57 * @syscap SystemCapability.ArkUI.ArkUI.Full 58 * @crossplatform 59 * @since 10 60 */ 61 /** 62 * Option string. 63 * 64 * @type { ResourceStr } 65 * @syscap SystemCapability.ArkUI.ArkUI.Full 66 * @crossplatform 67 * @atomicservice 68 * @since 11 69 */ 70 value: ResourceStr; 71 72 /** 73 * Option icon. 74 * 75 * @type { ?ResourceStr } 76 * @syscap SystemCapability.ArkUI.ArkUI.Full 77 * @since 8 78 */ 79 /** 80 * Option icon. 81 * 82 * @type { ?ResourceStr } 83 * @syscap SystemCapability.ArkUI.ArkUI.Full 84 * @crossplatform 85 * @since 10 86 */ 87 /** 88 * Option icon. 89 * 90 * @type { ?ResourceStr } 91 * @syscap SystemCapability.ArkUI.ArkUI.Full 92 * @crossplatform 93 * @atomicservice 94 * @since 11 95 */ 96 icon?: ResourceStr; 97 98 /** 99 * Indicates the symbol icon of this menu item. 100 * 101 * @type { ?SymbolGlyphModifier } 102 * @syscap SystemCapability.ArkUI.ArkUI.Full 103 * @atomicservice 104 * @since 12 105 */ 106 symbolIcon?: SymbolGlyphModifier; 107} 108 109/** 110 * Provides the select interface. 111 * 112 * @interface SelectInterface 113 * @syscap SystemCapability.ArkUI.ArkUI.Full 114 * @since 8 115 */ 116/** 117 * Provides the select interface. 118 * 119 * @interface SelectInterface 120 * @syscap SystemCapability.ArkUI.ArkUI.Full 121 * @crossplatform 122 * @since 10 123 */ 124/** 125 * Provides the select interface. 126 * 127 * @interface SelectInterface 128 * @syscap SystemCapability.ArkUI.ArkUI.Full 129 * @crossplatform 130 * @atomicservice 131 * @since 11 132 */ 133interface SelectInterface { 134 /** 135 * Called when the select is set. 136 * 137 * @param { Array<SelectOption> } options 138 * @returns { SelectAttribute } 139 * @syscap SystemCapability.ArkUI.ArkUI.Full 140 * @since 8 141 */ 142 /** 143 * Called when the select is set. 144 * 145 * @param { Array<SelectOption> } options 146 * @returns { SelectAttribute } 147 * @syscap SystemCapability.ArkUI.ArkUI.Full 148 * @crossplatform 149 * @since 10 150 */ 151 /** 152 * Called when the select is set. 153 * 154 * @param { Array<SelectOption> } options 155 * @returns { SelectAttribute } 156 * @syscap SystemCapability.ArkUI.ArkUI.Full 157 * @crossplatform 158 * @atomicservice 159 * @since 11 160 */ 161 (options: Array<SelectOption>): SelectAttribute; 162} 163 164/** 165 * The enum for arrow position in the select 166 * 167 * @enum { number } 168 * @syscap SystemCapability.ArkUI.ArkUI.Full 169 * @crossplatform 170 * @since 10 171 */ 172/** 173 * The enum for arrow position in the select 174 * 175 * @enum { number } 176 * @syscap SystemCapability.ArkUI.ArkUI.Full 177 * @crossplatform 178 * @atomicservice 179 * @since 11 180 */ 181declare enum ArrowPosition { 182 /** 183 * The value of arrow position end 184 * 185 * @syscap SystemCapability.ArkUI.ArkUI.Full 186 * @crossplatform 187 * @since 10 188 */ 189 /** 190 * The value of arrow position end 191 * 192 * @syscap SystemCapability.ArkUI.ArkUI.Full 193 * @crossplatform 194 * @atomicservice 195 * @since 11 196 */ 197 END = 0, 198 199 /** 200 * The value of arrow position start 201 * 202 * @syscap SystemCapability.ArkUI.ArkUI.Full 203 * @crossplatform 204 * @since 10 205 */ 206 /** 207 * The value of arrow position start 208 * 209 * @syscap SystemCapability.ArkUI.ArkUI.Full 210 * @crossplatform 211 * @atomicservice 212 * @since 11 213 */ 214 START = 1 215} 216 217/** 218 * The type of alignment between select and menu. 219 * 220 * @enum { number } 221 * @syscap SystemCapability.ArkUI.ArkUI.Full 222 * @since 10 223 */ 224/** 225 * The type of alignment between select and menu. 226 * 227 * @enum { number } 228 * @syscap SystemCapability.ArkUI.ArkUI.Full 229 * @crossplatform 230 * @atomicservice 231 * @since 11 232 */ 233declare enum MenuAlignType { 234 /** 235 * The value of menu align type start. 236 * 237 * @syscap SystemCapability.ArkUI.ArkUI.Full 238 * @since 10 239 */ 240 /** 241 * The value of menu align type start. 242 * 243 * @syscap SystemCapability.ArkUI.ArkUI.Full 244 * @crossplatform 245 * @atomicservice 246 * @since 11 247 */ 248 START, 249 /** 250 * The value of menu align type center. 251 * 252 * @syscap SystemCapability.ArkUI.ArkUI.Full 253 * @since 10 254 */ 255 /** 256 * The value of menu align type center. 257 * 258 * @syscap SystemCapability.ArkUI.ArkUI.Full 259 * @crossplatform 260 * @atomicservice 261 * @since 11 262 */ 263 CENTER, 264 /** 265 * The value of menu align type end. 266 * 267 * @syscap SystemCapability.ArkUI.ArkUI.Full 268 * @since 10 269 */ 270 /** 271 * The value of menu align type end. 272 * 273 * @syscap SystemCapability.ArkUI.ArkUI.Full 274 * @crossplatform 275 * @atomicservice 276 * @since 11 277 */ 278 END 279} 280 281/** 282 * The commonMethod of select. 283 * 284 * @extends CommonMethod<SelectAttribute> 285 * @syscap SystemCapability.ArkUI.ArkUI.Full 286 * @since 8 287 */ 288/** 289 * The commonMethod of select. 290 * 291 * @extends CommonMethod<SelectAttribute> 292 * @syscap SystemCapability.ArkUI.ArkUI.Full 293 * @crossplatform 294 * @since 10 295 */ 296/** 297 * The commonMethod of select. 298 * 299 * @extends CommonMethod<SelectAttribute> 300 * @syscap SystemCapability.ArkUI.ArkUI.Full 301 * @crossplatform 302 * @atomicservice 303 * @since 11 304 */ 305declare class SelectAttribute extends CommonMethod<SelectAttribute> { 306 /** 307 * Sets the serial number of the select item, starting from 0. 308 * 309 * @param { number } value 310 * @returns { SelectAttribute } 311 * @syscap SystemCapability.ArkUI.ArkUI.Full 312 * @since 8 313 */ 314 /** 315 * Sets the serial number of the select item, starting from 0. 316 * 317 * @param { number } value 318 * @returns { SelectAttribute } 319 * @syscap SystemCapability.ArkUI.ArkUI.Full 320 * @crossplatform 321 * @since 10 322 */ 323 /** 324 * Sets the serial number of the select item, starting from 0. 325 * 326 * @param { number | Resource } value - the serial number of the select item. 327 * @returns { SelectAttribute } the attribute of the select. 328 * @syscap SystemCapability.ArkUI.ArkUI.Full 329 * @crossplatform 330 * @atomicservice 331 * @since 11 332 */ 333 selected(value: number | Resource): SelectAttribute; 334 335 /** 336 * Sets the text display of the select button itself. 337 * 338 * @param { string } value 339 * @returns { SelectAttribute } 340 * @syscap SystemCapability.ArkUI.ArkUI.Full 341 * @since 8 342 */ 343 /** 344 * Sets the text display of the select button itself. 345 * 346 * @param { string } value 347 * @returns { SelectAttribute } 348 * @syscap SystemCapability.ArkUI.ArkUI.Full 349 * @crossplatform 350 * @since 10 351 */ 352 /** 353 * Sets the text display of the select button itself. 354 * 355 * @param { ResourceStr } value - the text display of the select button itself. 356 * @returns { SelectAttribute } the attribute of the select. 357 * @syscap SystemCapability.ArkUI.ArkUI.Full 358 * @crossplatform 359 * @atomicservice 360 * @since 11 361 */ 362 value(value: ResourceStr): SelectAttribute; 363 364 /** 365 * Sets the text properties of the select button itself. 366 * 367 * @param { Font } value 368 * @returns { SelectAttribute } 369 * @syscap SystemCapability.ArkUI.ArkUI.Full 370 * @since 8 371 */ 372 /** 373 * Sets the text properties of the select button itself. 374 * 375 * @param { Font } value 376 * @returns { SelectAttribute } 377 * @syscap SystemCapability.ArkUI.ArkUI.Full 378 * @crossplatform 379 * @since 10 380 */ 381 /** 382 * Sets the text properties of the select button itself. 383 * 384 * @param { Font } value 385 * @returns { SelectAttribute } 386 * @syscap SystemCapability.ArkUI.ArkUI.Full 387 * @crossplatform 388 * @atomicservice 389 * @since 11 390 */ 391 font(value: Font): SelectAttribute; 392 393 /** 394 * Sets the text color of the select button itself. 395 * 396 * @param { ResourceColor } value 397 * @returns { SelectAttribute } 398 * @syscap SystemCapability.ArkUI.ArkUI.Full 399 * @since 8 400 */ 401 /** 402 * Sets the text color of the select button itself. 403 * 404 * @param { ResourceColor } value 405 * @returns { SelectAttribute } 406 * @syscap SystemCapability.ArkUI.ArkUI.Full 407 * @crossplatform 408 * @since 10 409 */ 410 /** 411 * Sets the text color of the select button itself. 412 * 413 * @param { ResourceColor } value 414 * @returns { SelectAttribute } 415 * @syscap SystemCapability.ArkUI.ArkUI.Full 416 * @crossplatform 417 * @atomicservice 418 * @since 11 419 */ 420 fontColor(value: ResourceColor): SelectAttribute; 421 422 /** 423 * Sets the background color of the selected items in the select. 424 * 425 * @param { ResourceColor } value 426 * @returns { SelectAttribute } 427 * @syscap SystemCapability.ArkUI.ArkUI.Full 428 * @since 8 429 */ 430 /** 431 * Sets the background color of the selected items in the select. 432 * 433 * @param { ResourceColor } value 434 * @returns { SelectAttribute } 435 * @syscap SystemCapability.ArkUI.ArkUI.Full 436 * @crossplatform 437 * @since 10 438 */ 439 /** 440 * Sets the background color of the selected items in the select. 441 * 442 * @param { ResourceColor } value 443 * @returns { SelectAttribute } 444 * @syscap SystemCapability.ArkUI.ArkUI.Full 445 * @crossplatform 446 * @atomicservice 447 * @since 11 448 */ 449 selectedOptionBgColor(value: ResourceColor): SelectAttribute; 450 451 /** 452 * Sets the text style of the selected items in the select. 453 * 454 * @param { Font } value 455 * @returns { SelectAttribute } 456 * @syscap SystemCapability.ArkUI.ArkUI.Full 457 * @since 8 458 */ 459 /** 460 * Sets the text style of the selected items in the select. 461 * 462 * @param { Font } value 463 * @returns { SelectAttribute } 464 * @syscap SystemCapability.ArkUI.ArkUI.Full 465 * @crossplatform 466 * @since 10 467 */ 468 /** 469 * Sets the text style of the selected items in the select. 470 * 471 * @param { Font } value 472 * @returns { SelectAttribute } 473 * @syscap SystemCapability.ArkUI.ArkUI.Full 474 * @crossplatform 475 * @atomicservice 476 * @since 11 477 */ 478 selectedOptionFont(value: Font): SelectAttribute; 479 480 /** 481 * Sets the text color of the selected item in the select. 482 * 483 * @param { ResourceColor } value 484 * @returns { SelectAttribute } 485 * @syscap SystemCapability.ArkUI.ArkUI.Full 486 * @since 8 487 */ 488 /** 489 * Sets the text color of the selected item in the select. 490 * 491 * @param { ResourceColor } value 492 * @returns { SelectAttribute } 493 * @syscap SystemCapability.ArkUI.ArkUI.Full 494 * @crossplatform 495 * @since 10 496 */ 497 /** 498 * Sets the text color of the selected item in the select. 499 * 500 * @param { ResourceColor } value 501 * @returns { SelectAttribute } 502 * @syscap SystemCapability.ArkUI.ArkUI.Full 503 * @crossplatform 504 * @atomicservice 505 * @since 11 506 */ 507 selectedOptionFontColor(value: ResourceColor): SelectAttribute; 508 509 /** 510 * Sets the background color of the select item. 511 * 512 * @param { ResourceColor } value 513 * @returns { SelectAttribute } 514 * @syscap SystemCapability.ArkUI.ArkUI.Full 515 * @since 8 516 */ 517 /** 518 * Sets the background color of the select item. 519 * 520 * @param { ResourceColor } value 521 * @returns { SelectAttribute } 522 * @syscap SystemCapability.ArkUI.ArkUI.Full 523 * @crossplatform 524 * @since 10 525 */ 526 /** 527 * Sets the background color of the select item. 528 * 529 * @param { ResourceColor } value 530 * @returns { SelectAttribute } 531 * @syscap SystemCapability.ArkUI.ArkUI.Full 532 * @crossplatform 533 * @atomicservice 534 * @since 11 535 */ 536 optionBgColor(value: ResourceColor): SelectAttribute; 537 538 /** 539 * Sets the text style for select items. 540 * 541 * @param { Font } value 542 * @returns { SelectAttribute } 543 * @syscap SystemCapability.ArkUI.ArkUI.Full 544 * @since 8 545 */ 546 /** 547 * Sets the text style for select items. 548 * 549 * @param { Font } value 550 * @returns { SelectAttribute } 551 * @syscap SystemCapability.ArkUI.ArkUI.Full 552 * @crossplatform 553 * @since 10 554 */ 555 /** 556 * Sets the text style for select items. 557 * 558 * @param { Font } value 559 * @returns { SelectAttribute } 560 * @syscap SystemCapability.ArkUI.ArkUI.Full 561 * @crossplatform 562 * @atomicservice 563 * @since 11 564 */ 565 optionFont(value: Font): SelectAttribute; 566 567 /** 568 * Sets the text color for select items. 569 * 570 * @param { ResourceColor } value 571 * @returns { SelectAttribute } 572 * @syscap SystemCapability.ArkUI.ArkUI.Full 573 * @since 8 574 */ 575 /** 576 * Sets the text color for select items. 577 * 578 * @param { ResourceColor } value 579 * @returns { SelectAttribute } 580 * @syscap SystemCapability.ArkUI.ArkUI.Full 581 * @crossplatform 582 * @since 10 583 */ 584 /** 585 * Sets the text color for select items. 586 * 587 * @param { ResourceColor } value 588 * @returns { SelectAttribute } 589 * @syscap SystemCapability.ArkUI.ArkUI.Full 590 * @crossplatform 591 * @atomicservice 592 * @since 11 593 */ 594 optionFontColor(value: ResourceColor): SelectAttribute; 595 596 /** 597 * Callback for selecting an item from the select. 598 * 599 * @param { function } callback 600 * @returns { SelectAttribute } 601 * @syscap SystemCapability.ArkUI.ArkUI.Full 602 * @since 8 603 */ 604 /** 605 * Callback for selecting an item from the select. 606 * 607 * @param { function } callback 608 * @returns { SelectAttribute } 609 * @syscap SystemCapability.ArkUI.ArkUI.Full 610 * @crossplatform 611 * @since 10 612 */ 613 /** 614 * Callback for selecting an item from the select. 615 * 616 * @param { function } callback 617 * @returns { SelectAttribute } 618 * @syscap SystemCapability.ArkUI.ArkUI.Full 619 * @crossplatform 620 * @atomicservice 621 * @since 11 622 */ 623 onSelect(callback: (index: number, value: string) => void): SelectAttribute; 624 625 /** 626 * Set the space for text and icon in select 627 * 628 * @param { Length } value - indicates the length of the space 629 * @returns { SelectAttribute } 630 * @syscap SystemCapability.ArkUI.ArkUI.Full 631 * @crossplatform 632 * @since 10 633 */ 634 /** 635 * Set the space for text and icon in select 636 * 637 * @param { Length } value - indicates the length of the space 638 * @returns { SelectAttribute } 639 * @syscap SystemCapability.ArkUI.ArkUI.Full 640 * @crossplatform 641 * @atomicservice 642 * @since 11 643 */ 644 space(value: Length): SelectAttribute; 645 646 /** 647 * Set the layout direction for text and arrow in select 648 * 649 * @param { ArrowPosition } value - indicates the arrow position in the select 650 * @returns { SelectAttribute } 651 * @syscap SystemCapability.ArkUI.ArkUI.Full 652 * @crossplatform 653 * @since 10 654 */ 655 /** 656 * Set the layout direction for text and arrow in select 657 * 658 * @param { ArrowPosition } value - indicates the arrow position in the select 659 * @returns { SelectAttribute } 660 * @syscap SystemCapability.ArkUI.ArkUI.Full 661 * @crossplatform 662 * @atomicservice 663 * @since 11 664 */ 665 arrowPosition(value: ArrowPosition): SelectAttribute; 666 667 /** 668 * Set the alignment between select and menu. 669 * 670 * @param { MenuAlignType } alignType - The type of alignment between select and menu. 671 * @param { Offset } offset - The offset between select and menu. 672 * @returns { SelectAttribute } the attribute of the select. 673 * @syscap SystemCapability.ArkUI.ArkUI.Full 674 * @since 10 675 */ 676 /** 677 * Set the alignment between select and menu. 678 * 679 * @param { MenuAlignType } alignType - The type of alignment between select and menu. 680 * @param { Offset } offset - The offset between select and menu. 681 * @returns { SelectAttribute } the attribute of the select. 682 * @syscap SystemCapability.ArkUI.ArkUI.Full 683 * @crossplatform 684 * @atomicservice 685 * @since 11 686 */ 687 menuAlign(alignType: MenuAlignType, offset?: Offset): SelectAttribute; 688 689 /** 690 * Set the width of each option and set whether the option width fit the trigger. 691 * 692 * @param { Dimension | OptionWidthMode } value - The length of option width and decide option width to fit trigger or content. 693 * @returns { SelectAttribute } the attribute of the select. 694 * @syscap SystemCapability.ArkUI.ArkUI.Full 695 * @crossplatform 696 * @since 11 697 */ 698 /** 699 * Set the width of each option and set whether the option width fit the trigger. 700 * 701 * @param { Dimension | OptionWidthMode } value - The length of option width and decide option width to fit trigger or content. 702 * @returns { SelectAttribute } the attribute of the select. 703 * @syscap SystemCapability.ArkUI.ArkUI.Full 704 * @crossplatform 705 * @atomicservice 706 * @since 12 707 */ 708 optionWidth(value: Dimension | OptionWidthMode ): SelectAttribute; 709 710 /** 711 * Set the height of each option. 712 * 713 * @param { Dimension } value - The length of option height. 714 * @returns { SelectAttribute } the attribute of the select. 715 * @syscap SystemCapability.ArkUI.ArkUI.Full 716 * @crossplatform 717 * @since 11 718 */ 719 /** 720 * Set the height of each option. 721 * 722 * @param { Dimension } value - The length of option height. 723 * @returns { SelectAttribute } the attribute of the select. 724 * @syscap SystemCapability.ArkUI.ArkUI.Full 725 * @crossplatform 726 * @atomicservice 727 * @since 12 728 */ 729 optionHeight(value: Dimension): SelectAttribute; 730 731 /** 732 * set the menu's background color 733 * 734 * @param { ResourceColor } value - The backgroundColor of menu. 735 * @returns { SelectAttribute } the attribute of the select. 736 * @syscap SystemCapability.ArkUI.ArkUI.Full 737 * @crossplatform 738 * @since 11 739 */ 740 /** 741 * set the menu's background color 742 * 743 * @param { ResourceColor } value - The backgroundColor of menu. 744 * @returns { SelectAttribute } the attribute of the select. 745 * @syscap SystemCapability.ArkUI.ArkUI.Full 746 * @crossplatform 747 * @atomicservice 748 * @since 12 749 */ 750 menuBackgroundColor(value: ResourceColor): SelectAttribute; 751 752 /** 753 * set menu background blur Style 754 * 755 * @param { BlurStyle } value - The BackgroundBlurStyle of menu. 756 * @returns { SelectAttribute } the attribute of the select. 757 * @syscap SystemCapability.ArkUI.ArkUI.Full 758 * @crossplatform 759 * @since 11 760 */ 761 /** 762 * set menu background blur Style 763 * 764 * @param { BlurStyle } value - The BackgroundBlurStyle of menu. 765 * @returns { SelectAttribute } the attribute of the select. 766 * @syscap SystemCapability.ArkUI.ArkUI.Full 767 * @crossplatform 768 * @atomicservice 769 * @since 12 770 */ 771 menuBackgroundBlurStyle(value: BlurStyle): SelectAttribute; 772 773 /** 774 * Sets the size for controls within Select Component. 775 * 776 * @param { ControlSize } value - control size 777 * @returns { SelectAttribute } the attribute of the select. 778 * @syscap SystemCapability.ArkUI.ArkUI.Full 779 * @crossplatform 780 * @atomicservice 781 * @since 12 782 */ 783 controlSize(value: ControlSize): SelectAttribute; 784 785 /** 786 * Register a ContentModifier for each menu item. 787 * 788 * @param { ContentModifier<MenuItemConfiguration> } modifier - The content modifier of select menu item. 789 * @returns { SelectAttribute } the attribute of the select. 790 * @syscap SystemCapability.ArkUI.ArkUI.Full 791 * @crossplatform 792 * @atomicservice 793 * @since 12 794 */ 795 menuItemContentModifier(modifier: ContentModifier<MenuItemConfiguration>): SelectAttribute; 796 797 /** 798 * Set the divider of select. 799 * 800 * @param { Optional<DividerOptions> | null } options Set custom and hidden divider. 801 * @returns { SelectAttribute } the attribute of the select. 802 * @syscap SystemCapability.ArkUI.ArkUI.Full 803 * @crossplatform 804 * @atomicservice 805 * @since 12 806 */ 807 divider(options: Optional<DividerOptions> | null): SelectAttribute; 808} 809 810/** 811 * MenuItemConfiguration used by menu item content modifier. 812 * 813 * @interface MenuItemConfiguration 814 * @syscap SystemCapability.ArkUI.ArkUI.Full 815 * @crossplatform 816 * @atomicservice 817 * @since 12 818 */ 819declare interface MenuItemConfiguration extends CommonConfiguration<MenuItemConfiguration>{ 820 /** 821 * Indicates the text of this menu item. 822 * 823 * @type { ResourceStr } 824 * @syscap SystemCapability.ArkUI.ArkUI.Full 825 * @crossplatform 826 * @atomicservice 827 * @since 12 828 */ 829 value: ResourceStr; 830 831 /** 832 * Indicates the icon of this menu item. 833 * 834 * @type { ?ResourceStr } 835 * @syscap SystemCapability.ArkUI.ArkUI.Full 836 * @crossplatform 837 * @atomicservice 838 * @since 12 839 */ 840 icon?: ResourceStr; 841 842 /** 843 * Indicates the symbol icon of this menu item. 844 * 845 * @type { ?SymbolGlyphModifier } 846 * @syscap SystemCapability.ArkUI.ArkUI.Full 847 * @atomicservice 848 * @since 12 849 */ 850 symbolIcon?: SymbolGlyphModifier; 851 852 /** 853 * Indicates whether this menu item is selected or not. 854 * 855 * @type { boolean } 856 * @syscap SystemCapability.ArkUI.ArkUI.Full 857 * @crossplatform 858 * @atomicservice 859 * @since 12 860 */ 861 selected: boolean; 862 863 /** 864 * Indicates the index of the menu item. 865 * 866 * @type { number } 867 * @syscap SystemCapability.ArkUI.ArkUI.Full 868 * @crossplatform 869 * @atomicservice 870 * @since 12 871 */ 872 index: number; 873 874 /** 875 * Select this menu item. 876 * 877 * @param { number } index - The value of menu item index. 878 * @param { string } value - The value of menu item text. 879 * @syscap SystemCapability.ArkUI.ArkUI.Full 880 * @crossplatform 881 * @atomicservice 882 * @since 12 883 */ 884 triggerSelect(index: number, value: string): void; 885} 886/** 887 * Defines Select Component. 888 * 889 * @syscap SystemCapability.ArkUI.ArkUI.Full 890 * @since 8 891 */ 892/** 893 * Defines Select Component. 894 * 895 * @syscap SystemCapability.ArkUI.ArkUI.Full 896 * @crossplatform 897 * @since 10 898 */ 899/** 900 * Defines Select Component. 901 * 902 * @syscap SystemCapability.ArkUI.ArkUI.Full 903 * @crossplatform 904 * @atomicservice 905 * @since 11 906 */ 907declare const Select: SelectInterface; 908 909/** 910 * Defines Select Component instance. 911 * 912 * @syscap SystemCapability.ArkUI.ArkUI.Full 913 * @since 8 914 */ 915/** 916 * Defines Select Component instance. 917 * 918 * @syscap SystemCapability.ArkUI.ArkUI.Full 919 * @crossplatform 920 * @since 10 921 */ 922/** 923 * Defines Select Component instance. 924 * 925 * @syscap SystemCapability.ArkUI.ArkUI.Full 926 * @crossplatform 927 * @atomicservice 928 * @since 11 929 */ 930declare const SelectInstance: SelectAttribute; 931