-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui-layoutbox.Rmd
27 lines (17 loc) · 1.45 KB
/
ui-layoutbox.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
title: "LayoutBox"
output: html_document
---
**Inherits from [`BaseControl`](ui-basecontrol.html), [`ParentControl`](ui-parentcontrol.html)**
A `LayoutBox` allows a designer to control the layout of its child controls. A `LayoutBox` does not display anything itself but purely serves as a frame for placing other controls. It can be used as a list (default), inline list, or grid.
##Properties
In addition to any inherited properties, a `LayoutBox` supports:
Property | Description | Form |
------------- | ------------------------------------------| -------------------- |
`style` | Determines how the automatic layout behavior of the control. | *enum*: list, inline
###Further Details
####`style`
- `list`: Children will be added in a vertical manner starting at `cell` position `column: 0, row: 0`.
- `inline`: Children will be added in a horizontal manner starting at `cell` position `column: 0, row: 0`.
To add to a `LayoutBox` in a grid format, use the `cell` property of the child control. As the `LayoutBox` is positioning its `children` it will use the `cell` property of the control to place it correctly. The `cell` property of a child control overrides the auto positioning of the `style` property. If a child control does not have a `cell` property defined it will use the `style` property to automatically place it based on the position of the previous child.
----------------------------------------