• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RowSplit
2
3The **\<RowSplit>** lays out child components horizontally and inserts a vertical divider between child components.
4
5>  **NOTE**
6>
7> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
8
9## Child Components
10
11Supported
12
13## APIs
14
15RowSplit()
16
17
18## Attributes
19
20| Name| Type| Description|
21| -------- | -------- | -------- |
22| resizeable | boolean | Whether the divider can be dragged.<br>Default value: **false** |
23
24>  **NOTE**
25>
26> Similar to **\<RowSplit>**, the divider of **\<RowSplit>** can be dragged to a position that just fully holds a component.
27>
28> Dragging is not supported in the Previewer. Check the drag effect on a real device.
29>
30> The universal attributes **clip** and **margin** are not supported.
31
32
33## Example
34
35```ts
36// xxx.ets
37@Entry
38@Component
39struct RowSplitExample {
40  build() {
41    Column() {
42      Text('The second line can be dragged').fontSize(9).fontColor(0xCCCCCC).width('90%')
43      RowSplit() {
44        Text('1').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
45        Text('2').width('10%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
46        Text('3').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
47        Text('4').width('10%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
48        Text('5').width('10%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center)
49      }
50      .resizeable(true) // The divider can be dragged.
51      .width('90%').height(100)
52    }.width('100%').margin({ top: 5 })
53  }
54}
55```
56
57![en-us_image_0000001212058482](figures/en-us_image_0000001212058482.gif)
58