• 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 * Mesh container for static fixed-size layout scenarios.
18 * @since 7
19 */
20interface GridItemInterface {
21  /**
22   * Return to get GridItem.
23   * @since 7
24   */
25  (): GridItemAttribute;
26}
27
28/**
29 * @since 7
30 */
31declare class GridItemAttribute extends CommonMethod<GridItemAttribute> {
32  /**
33   * This parameter specifies the start line number of the current element.
34   * @since 7
35   */
36  rowStart(value: number): GridItemAttribute;
37
38  /**
39   * Specifies the end line number of the current element.
40   * @since 7
41   */
42  rowEnd(value: number): GridItemAttribute;
43
44  /**
45   * This parameter specifies the start column number of the current element.
46   * @since 7
47   */
48  columnStart(value: number): GridItemAttribute;
49
50  /**
51   * This parameter specifies the end column number of the current element.
52   * @since 7
53   */
54  columnEnd(value: number): GridItemAttribute;
55
56  /**
57   * This parameter specifies whether to recreate the node when the component build is triggered.
58   * @since 7
59   * @deprecated since 9
60   */
61  forceRebuild(value: boolean): GridItemAttribute;
62
63  /**
64   * Called when judging whether it is selectable.
65   * @since 8
66   */
67  selectable(value: boolean): GridItemAttribute;
68
69  /**
70   * Called when the gridItem is selected.
71   * @since 8
72   */
73  onSelect(event: (isSelected: boolean) => void): GridItemAttribute;
74}
75
76/**
77 * Defines GridItem Component.
78 * @since 7
79 */
80declare const GridItem: GridItemInterface
81
82/**
83 * Defines GridItem Component instance.
84 * @since 7
85 */
86declare const GridItemInstance: GridItemAttribute;
87