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