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 */ 60 forceRebuild(value: boolean): GridItemAttribute; 61 62 /** 63 * Called when judging whether it is selectable. 64 * @since 8 65 */ 66 selectable(value: boolean): GridItemAttribute; 67 68 /** 69 * Called when the gridItem is selected. 70 * @since 8 71 */ 72 onSelect(event: (isSelected: boolean) => void): GridItemAttribute; 73} 74 75declare const GridItem: GridItemInterface 76declare const GridItemInstance: GridItemAttribute; 77