1e41f4b71Sopenharmony_ci# ColumnSplit 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe **ColumnSplit** component lays out child components vertically and inserts a horizontal divider between every two child components. 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci> **NOTE** 6e41f4b71Sopenharmony_ci> 7e41f4b71Sopenharmony_ci> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. 8e41f4b71Sopenharmony_ci## Child Components 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ciSupported 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ciThis component limits the height of its child components through dividers. During initialization, the divider positions are calculated based on the height of its child components. After initialization, changes to the height of the child components do not take effect. Still, the space occupied by the child components can be changed by dragging the dividers between them. 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ciAfter initialization, if, due to dynamic changes to the [margin](ts-universal-attributes-size.md#margin), [border](ts-universal-attributes-border.md#border), or [padding](ts-universal-attributes-size.md#padding) attributes, the size of the child components is greater than the allowable distance between adjacent dividers, dividers cannot be dragged to adjust the height of the child components. 15e41f4b71Sopenharmony_ci## APIs 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ciColumnSplit() 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci## Attributes 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci### resizeable 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ciresizeable(value: boolean) 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ciSets whether the divider can be dragged. 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11. 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci**Parameters** 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ci| Name| Type | Mandatory| Description | 34e41f4b71Sopenharmony_ci| ------ | ------- | ---- | ------------------------------------ | 35e41f4b71Sopenharmony_ci| value | boolean | Yes | Whether the divider can be dragged.<br>Default value: **false**| 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ci### divider<sup>10+</sup> 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_cidivider(value: ColumnSplitDividerStyle | null) 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ciMargin of the divider. 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11. 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full 46e41f4b71Sopenharmony_ci 47e41f4b71Sopenharmony_ci**Parameters** 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ci| Name| Type | Mandatory| Description | 50e41f4b71Sopenharmony_ci| ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | 51e41f4b71Sopenharmony_ci| value | [ColumnSplitDividerStyle](#columnsplitdividerstyle10) \| null | Yes | Margin of the divider.<br>Default value: **null**, indicating that the top and bottom margins of the divider are 0. **DividerStyle**: distance between the divider and the child component above or below it.| 52e41f4b71Sopenharmony_ci 53e41f4b71Sopenharmony_ci## ColumnSplitDividerStyle<sup>10+</sup> 54e41f4b71Sopenharmony_ci 55e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11. 56e41f4b71Sopenharmony_ci 57e41f4b71Sopenharmony_ci| Name | Type | Mandatory| Description | 58e41f4b71Sopenharmony_ci| ----------- | ------------- | ---- |--------------------------| 59e41f4b71Sopenharmony_ci| startMargin | [Dimension](ts-types.md#dimension10) | No | Distance between the divider and the child component above it.<br>Default value: **0**| 60e41f4b71Sopenharmony_ci| endMargin | [Dimension](ts-types.md#dimension10) | No | Distance between the divider and the child component below it.<br>Default value: **0**| 61e41f4b71Sopenharmony_ci 62e41f4b71Sopenharmony_ci> **NOTE** 63e41f4b71Sopenharmony_ci> 64e41f4b71Sopenharmony_ci> Similar to [RowSplit](ts-container-rowsplit.md#rowsplit), the divider of **ColumnSplit** can change the height of the upper and lower child components, but only to the extent that the resultant height falls within the maximum and minimum heights of the child components. 65e41f4b71Sopenharmony_ci> 66e41f4b71Sopenharmony_ci> Universal attributes such as [clip](ts-universal-attributes-sharp-clipping.md#clip) and [margin](ts-universal-attributes-size.md#margin) are supported. If **clip** is not set, the default value **true** is used. 67e41f4b71Sopenharmony_ci 68e41f4b71Sopenharmony_ci 69e41f4b71Sopenharmony_ci## Example 70e41f4b71Sopenharmony_ci 71e41f4b71Sopenharmony_ci```ts 72e41f4b71Sopenharmony_ci// xxx.ets 73e41f4b71Sopenharmony_ci@Entry 74e41f4b71Sopenharmony_ci@Component 75e41f4b71Sopenharmony_cistruct ColumnSplitExample { 76e41f4b71Sopenharmony_ci build() { 77e41f4b71Sopenharmony_ci Column(){ 78e41f4b71Sopenharmony_ci Text('The secant line can be dragged').fontSize(9).fontColor(0xCCCCCC).width('90%') 79e41f4b71Sopenharmony_ci ColumnSplit() { 80e41f4b71Sopenharmony_ci Text('1').width('100%').height(50).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) 81e41f4b71Sopenharmony_ci Text('2').width('100%').height(50).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) 82e41f4b71Sopenharmony_ci Text('3').width('100%').height(50).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) 83e41f4b71Sopenharmony_ci Text('4').width('100%').height(50).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) 84e41f4b71Sopenharmony_ci Text('5').width('100%').height(50).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) 85e41f4b71Sopenharmony_ci } 86e41f4b71Sopenharmony_ci .borderWidth(1) 87e41f4b71Sopenharmony_ci .resizeable(true) // The divider can be dragged. 88e41f4b71Sopenharmony_ci .width('90%').height('60%') 89e41f4b71Sopenharmony_ci }.width('100%') 90e41f4b71Sopenharmony_ci } 91e41f4b71Sopenharmony_ci} 92e41f4b71Sopenharmony_ci``` 93e41f4b71Sopenharmony_ci 94e41f4b71Sopenharmony_ci 95