• 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 * Defines the options of Flex.
18 * @since 7
19 */
20declare interface FlexOptions {
21  /**
22   * Sets the horizontal layout of elements.
23   * @since 7
24   */
25  direction?: FlexDirection;
26
27  /**
28   * Whether the Flex container is a single row/column arrangement or a multi-row/column arrangement.
29   * @since 7
30   */
31  wrap?: FlexWrap;
32
33  /**
34   * The alignment format of the subassembly on the Flex container spindle.
35   * @since 7
36   */
37  justifyContent?: FlexAlign;
38
39  /**
40   * Alignment Format for Subassembly on Flex Container Cross Axis.
41   * @since 7
42   */
43  alignItems?: ItemAlign;
44
45  /**
46   * The alignment of multiple lines of content when there is extra space in the cross axis.
47   * @since 7
48   */
49  alignContent?: FlexAlign;
50}
51
52/**
53 * Provides a monthly view component to display information such as date, shift break, and schedule.
54 * @since 7
55 */
56interface FlexInterface {
57  /**
58   * Defines the constructor of Flex.
59   * @since 7
60   */
61  (value?: FlexOptions): FlexAttribute;
62}
63
64/**
65 * Defines the Flex attribute functions.
66 * @since 7
67 */
68declare class FlexAttribute extends CommonMethod<FlexAttribute> {}
69
70declare const Flex: FlexInterface;
71declare const FlexInstance: FlexAttribute;
72