• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * Provides a divider component to separate different content blocks/content elements.
18 * @since 7
19 */
20interface DividerInterface {
21  /**
22   * Return Divider.
23   * @since 7
24   */
25  (): DividerAttribute;
26}
27
28/**
29 * Defines the Divider attribute functions.
30 * @since 7
31 */
32declare class DividerAttribute extends CommonMethod<DividerAttribute> {
33  /**
34   * Indicates whether to use a horizontal splitter or a vertical splitter.
35   * The options are as follows: false: horizontal splitter; true: vertical splitter.
36   * @since 7
37   */
38  vertical(value: boolean): DividerAttribute;
39
40  /**
41   * Sets the color of the divider line.
42   * @since 7
43   */
44  color(value: ResourceColor): DividerAttribute;
45
46  /**
47   * Sets the width of the dividing line.
48   * @since 7
49   */
50  strokeWidth(value: number | string): DividerAttribute;
51
52  /**
53   * Sets the end style of the split line. The default value is Butt.
54   * @since 7
55   */
56  lineCap(value: LineCapStyle): DividerAttribute;
57}
58
59declare const Divider: DividerInterface;
60declare const DividerInstance: DividerAttribute;
61