161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit ArkUI 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ci/** 2261847f8eSopenharmony_ci * Defines the ColumnSplit component. 2361847f8eSopenharmony_ci * 2461847f8eSopenharmony_ci * @interface ColumnSplitInterface 2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2661847f8eSopenharmony_ci * @since 7 2761847f8eSopenharmony_ci */ 2861847f8eSopenharmony_ci/** 2961847f8eSopenharmony_ci * Defines the ColumnSplit component. 3061847f8eSopenharmony_ci * 3161847f8eSopenharmony_ci * @interface ColumnSplitInterface 3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3361847f8eSopenharmony_ci * @crossplatform 3461847f8eSopenharmony_ci * @since 10 3561847f8eSopenharmony_ci */ 3661847f8eSopenharmony_ci/** 3761847f8eSopenharmony_ci * Defines the ColumnSplit component. 3861847f8eSopenharmony_ci * 3961847f8eSopenharmony_ci * @interface ColumnSplitInterface 4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4161847f8eSopenharmony_ci * @crossplatform 4261847f8eSopenharmony_ci * @atomicservice 4361847f8eSopenharmony_ci * @since 11 4461847f8eSopenharmony_ci */ 4561847f8eSopenharmony_ciinterface ColumnSplitInterface { 4661847f8eSopenharmony_ci /** 4761847f8eSopenharmony_ci * Layout the subassemblies vertically and insert a horizontal divider line between each subassemblies. 4861847f8eSopenharmony_ci * 4961847f8eSopenharmony_ci * @returns { ColumnSplitAttribute } 5061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5161847f8eSopenharmony_ci * @since 7 5261847f8eSopenharmony_ci */ 5361847f8eSopenharmony_ci /** 5461847f8eSopenharmony_ci * Layout the subassemblies vertically and insert a horizontal divider line between each subassemblies. 5561847f8eSopenharmony_ci * 5661847f8eSopenharmony_ci * @returns { ColumnSplitAttribute } 5761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5861847f8eSopenharmony_ci * @crossplatform 5961847f8eSopenharmony_ci * @since 10 6061847f8eSopenharmony_ci */ 6161847f8eSopenharmony_ci /** 6261847f8eSopenharmony_ci * Layout the subassemblies vertically and insert a horizontal divider line between each subassemblies. 6361847f8eSopenharmony_ci * 6461847f8eSopenharmony_ci * @returns { ColumnSplitAttribute } 6561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6661847f8eSopenharmony_ci * @crossplatform 6761847f8eSopenharmony_ci * @atomicservice 6861847f8eSopenharmony_ci * @since 11 6961847f8eSopenharmony_ci */ 7061847f8eSopenharmony_ci (): ColumnSplitAttribute; 7161847f8eSopenharmony_ci} 7261847f8eSopenharmony_ci 7361847f8eSopenharmony_ci/** 7461847f8eSopenharmony_ci * Provides an interface for the style of a divider including start margin and end margin 7561847f8eSopenharmony_ci * 7661847f8eSopenharmony_ci * @interface ColumnSplitDividerStyle 7761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7861847f8eSopenharmony_ci * @crossplatform 7961847f8eSopenharmony_ci * @since 10 8061847f8eSopenharmony_ci */ 8161847f8eSopenharmony_ci/** 8261847f8eSopenharmony_ci * Provides an interface for the style of a divider including start margin and end margin 8361847f8eSopenharmony_ci * 8461847f8eSopenharmony_ci * @interface ColumnSplitDividerStyle 8561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8661847f8eSopenharmony_ci * @crossplatform 8761847f8eSopenharmony_ci * @atomicservice 8861847f8eSopenharmony_ci * @since 11 8961847f8eSopenharmony_ci */ 9061847f8eSopenharmony_ciinterface ColumnSplitDividerStyle { 9161847f8eSopenharmony_ci /** 9261847f8eSopenharmony_ci * Define the start margin of the divider 9361847f8eSopenharmony_ci * 9461847f8eSopenharmony_ci * @type { ?Dimension } 9561847f8eSopenharmony_ci * @default 0 9661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9761847f8eSopenharmony_ci * @crossplatform 9861847f8eSopenharmony_ci * @since 10 9961847f8eSopenharmony_ci */ 10061847f8eSopenharmony_ci /** 10161847f8eSopenharmony_ci * Define the start margin of the divider 10261847f8eSopenharmony_ci * 10361847f8eSopenharmony_ci * @type { ?Dimension } 10461847f8eSopenharmony_ci * @default 0 10561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10661847f8eSopenharmony_ci * @crossplatform 10761847f8eSopenharmony_ci * @atomicservice 10861847f8eSopenharmony_ci * @since 11 10961847f8eSopenharmony_ci */ 11061847f8eSopenharmony_ci startMargin?: Dimension; 11161847f8eSopenharmony_ci 11261847f8eSopenharmony_ci /** 11361847f8eSopenharmony_ci * Define the end margin of the divider 11461847f8eSopenharmony_ci * 11561847f8eSopenharmony_ci * @type { ?Dimension } 11661847f8eSopenharmony_ci * @default 0 11761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11861847f8eSopenharmony_ci * @crossplatform 11961847f8eSopenharmony_ci * @since 10 12061847f8eSopenharmony_ci */ 12161847f8eSopenharmony_ci /** 12261847f8eSopenharmony_ci * Define the end margin of the divider 12361847f8eSopenharmony_ci * 12461847f8eSopenharmony_ci * @type { ?Dimension } 12561847f8eSopenharmony_ci * @default 0 12661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 12761847f8eSopenharmony_ci * @crossplatform 12861847f8eSopenharmony_ci * @atomicservice 12961847f8eSopenharmony_ci * @since 11 13061847f8eSopenharmony_ci */ 13161847f8eSopenharmony_ci endMargin?: Dimension; 13261847f8eSopenharmony_ci} 13361847f8eSopenharmony_ci 13461847f8eSopenharmony_ci/** 13561847f8eSopenharmony_ci * Defines the ColumnSplit component attribute functions. 13661847f8eSopenharmony_ci * 13761847f8eSopenharmony_ci * @extends CommonMethod<ColumnSplitAttribute> 13861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13961847f8eSopenharmony_ci * @since 7 14061847f8eSopenharmony_ci */ 14161847f8eSopenharmony_ci/** 14261847f8eSopenharmony_ci * Defines the ColumnSplit component attribute functions. 14361847f8eSopenharmony_ci * 14461847f8eSopenharmony_ci * @extends CommonMethod<ColumnSplitAttribute> 14561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14661847f8eSopenharmony_ci * @crossplatform 14761847f8eSopenharmony_ci * @since 10 14861847f8eSopenharmony_ci */ 14961847f8eSopenharmony_ci/** 15061847f8eSopenharmony_ci * Defines the ColumnSplit component attribute functions. 15161847f8eSopenharmony_ci * 15261847f8eSopenharmony_ci * @extends CommonMethod<ColumnSplitAttribute> 15361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15461847f8eSopenharmony_ci * @crossplatform 15561847f8eSopenharmony_ci * @atomicservice 15661847f8eSopenharmony_ci * @since 11 15761847f8eSopenharmony_ci */ 15861847f8eSopenharmony_cideclare class ColumnSplitAttribute extends CommonMethod<ColumnSplitAttribute> { 15961847f8eSopenharmony_ci /** 16061847f8eSopenharmony_ci * Indicates whether the split line can be dragged. The default value is false. 16161847f8eSopenharmony_ci * 16261847f8eSopenharmony_ci * @param { boolean } value 16361847f8eSopenharmony_ci * @returns { ColumnSplitAttribute } 16461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16561847f8eSopenharmony_ci * @since 7 16661847f8eSopenharmony_ci */ 16761847f8eSopenharmony_ci /** 16861847f8eSopenharmony_ci * Indicates whether the split line can be dragged. The default value is false. 16961847f8eSopenharmony_ci * 17061847f8eSopenharmony_ci * @param { boolean } value 17161847f8eSopenharmony_ci * @returns { ColumnSplitAttribute } 17261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17361847f8eSopenharmony_ci * @crossplatform 17461847f8eSopenharmony_ci * @since 10 17561847f8eSopenharmony_ci */ 17661847f8eSopenharmony_ci /** 17761847f8eSopenharmony_ci * Indicates whether the split line can be dragged. The default value is false. 17861847f8eSopenharmony_ci * 17961847f8eSopenharmony_ci * @param { boolean } value 18061847f8eSopenharmony_ci * @returns { ColumnSplitAttribute } 18161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 18261847f8eSopenharmony_ci * @crossplatform 18361847f8eSopenharmony_ci * @atomicservice 18461847f8eSopenharmony_ci * @since 11 18561847f8eSopenharmony_ci */ 18661847f8eSopenharmony_ci resizeable(value: boolean): ColumnSplitAttribute; 18761847f8eSopenharmony_ci 18861847f8eSopenharmony_ci /** 18961847f8eSopenharmony_ci * Called when the ColumnSplit split line style is set. 19061847f8eSopenharmony_ci * @param { ColumnSplitDividerStyle | null } value - indicates the style of the indicator. 19161847f8eSopenharmony_ci * if value is set to null, the value of startMargin and endMargin is set to 0.0 by default. 19261847f8eSopenharmony_ci * @returns { ColumnSplitAttribute } the attribute of the ColumnSplit 19361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19461847f8eSopenharmony_ci * @crossplatform 19561847f8eSopenharmony_ci * @since 10 19661847f8eSopenharmony_ci */ 19761847f8eSopenharmony_ci /** 19861847f8eSopenharmony_ci * Called when the ColumnSplit split line style is set. 19961847f8eSopenharmony_ci * @param { ColumnSplitDividerStyle | null } value - indicates the style of the indicator. 20061847f8eSopenharmony_ci * if value is set to null, the value of startMargin and endMargin is set to 0.0 by default. 20161847f8eSopenharmony_ci * @returns { ColumnSplitAttribute } the attribute of the ColumnSplit 20261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20361847f8eSopenharmony_ci * @crossplatform 20461847f8eSopenharmony_ci * @atomicservice 20561847f8eSopenharmony_ci * @since 11 20661847f8eSopenharmony_ci */ 20761847f8eSopenharmony_ci divider(value: ColumnSplitDividerStyle | null): ColumnSplitAttribute; 20861847f8eSopenharmony_ci} 20961847f8eSopenharmony_ci 21061847f8eSopenharmony_ci/** 21161847f8eSopenharmony_ci * Defines ColumnSplit Component instance. 21261847f8eSopenharmony_ci * 21361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21461847f8eSopenharmony_ci * @since 7 21561847f8eSopenharmony_ci */ 21661847f8eSopenharmony_ci/** 21761847f8eSopenharmony_ci * Defines ColumnSplit Component instance. 21861847f8eSopenharmony_ci * 21961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22061847f8eSopenharmony_ci * @crossplatform 22161847f8eSopenharmony_ci * @since 10 22261847f8eSopenharmony_ci */ 22361847f8eSopenharmony_ci/** 22461847f8eSopenharmony_ci * Defines ColumnSplit Component instance. 22561847f8eSopenharmony_ci * 22661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22761847f8eSopenharmony_ci * @crossplatform 22861847f8eSopenharmony_ci * @atomicservice 22961847f8eSopenharmony_ci * @since 11 23061847f8eSopenharmony_ci */ 23161847f8eSopenharmony_cideclare const ColumnSplitInstance: ColumnSplitAttribute; 23261847f8eSopenharmony_ci 23361847f8eSopenharmony_ci/** 23461847f8eSopenharmony_ci * Defines ColumnSplit Component. 23561847f8eSopenharmony_ci * 23661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23761847f8eSopenharmony_ci * @since 7 23861847f8eSopenharmony_ci */ 23961847f8eSopenharmony_ci/** 24061847f8eSopenharmony_ci * Defines ColumnSplit Component. 24161847f8eSopenharmony_ci * 24261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 24361847f8eSopenharmony_ci * @crossplatform 24461847f8eSopenharmony_ci * @since 10 24561847f8eSopenharmony_ci */ 24661847f8eSopenharmony_ci/** 24761847f8eSopenharmony_ci * Defines ColumnSplit Component. 24861847f8eSopenharmony_ci * 24961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 25061847f8eSopenharmony_ci * @crossplatform 25161847f8eSopenharmony_ci * @atomicservice 25261847f8eSopenharmony_ci * @since 11 25361847f8eSopenharmony_ci */ 25461847f8eSopenharmony_cideclare const ColumnSplit: ColumnSplitInterface; 255