-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui-label.Rmd
45 lines (28 loc) · 1.56 KB
/
ui-label.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: "Label"
output: html_document
---
A `Label` is a simple control that displays text. It can take two inheritance forms depending on how it is setup. The first is a *static label* and the second is an *option label*.
##Option Label
**Inherits from (`OptionControl`](ui-optioncontrol.html), [`ParentControl`](ui-parentcontrol.html)**
A `Label` is by default an *option label* unless the `label` property is defined. An option `Label` will populate its display using the underlying option to which it has been assigned. For further information about option binding see [`OptionControl`](ui-optioncontrol.html).
### Properties
When bound to an option, there are no `Label` specific properties. All behavior can be achieved using the inherited properties of [`OptionControl`](ui-optioncontrol.html) and [`OptionControl`](ui-optioncontrol.html).
-------------
##Static Label
**Inherits from [`BaseControl`](ui-basecontrol.html), [`ParentControl`](ui-parentcontrol.html)**
A static `Label` is created when the `label` property of the control is defined. In this form the `Label` control acts like any old label.
###Properties
In addition to any inherited properties, a `Label` supports:
Property | Description | Form |
------------- | ------------------------------------------| -------------------- |
`label` | Sets the text to be displayed by the control. | string
###Example
```{yaml}
- type: Label
label: Percentile Values
children:
- type: CheckBox
name: quart
```
----------------------------------------