The Text Controls subcomponent is used by UI Options to present controls that allow a user to configure how text should be presented on a page. The options described on this page can be configured through the options of the main UI Options components. Three version of UI Options are available:Do not use this component directly. The information on this page should be use when customizing one of the three versions. See Also Layout Controls Links Controls Full Page UI Options Full Page UI Options (with Preview) Fat Panel UI Options Supported Events Include Page |
---|
| _supported events intro |
---|
| _supported events intro |
---|
|
onUIOptionsRefresh Div |
---|
| Description | This event fires any time the text settings are saved or reset, or when the user cancels their changes to the interface. |
---|
Type | default |
---|
Parameters | none |
---|
Availability | Infusion 1.4 and later |
---|
|
Options Include Page |
---|
| _configurable subcomponents intro |
---|
| _configurable subcomponents intro |
---|
|
The options supported by the Text Controls subcomponent are described below. controlValues Div |
---|
| Description | This options defines values for the two lists in this set of controls: textFont and theme . |
---|
Default | Code Block |
---|
| controlValues: {
textFont: ["default", "times", "comic", "arial", "verdana"],
theme: ["default", "bw", "wb", "by", "yb"]
} |
|
---|
| {code}|
||Example|{code:javascript} | Example | Code Block |
---|
| controlValues: {
textFont: ["default", "time", "comic", "arial", "verdana", "courier"]
} |
|
---|
| {code}|
||Notes| # If the controlValues are modified, the [UI Enhancer] must be updated, and the associated {{strings}} option should be updated.
# The values are arrays. If the defaults are overridden, an entire new array must be specified, even if the only customization is the addition of an element to the array.|
||See also| [UI Enhancer]\\
[Instructional Example: Adding elements to the control values|UI Options - Custom Dropdowns]|
{div2}
h3. lineSpacing
{div2:class=api-table}
||Description| Minimum and maximum settings for the line spacing range |
||Default| {code:javascript}lineSpacing Div |
---|
| Description | Minimum and maximum settings for the line spacing range |
---|
Default | Code Block |
---|
| lineSpacing: {
min: 1,
max: 2
} |
|
---|
| {code}|
||Example| {code:javascript} | Example | Code Block |
---|
| lineSpacing: {
max: 5
} |
|
---|
| {code} |
{div2}
h3. selectors
{div2:class=api-table}
||Description|... See below.|
{div2}
h3. strings
{div2:class=api-table}
||Description| Labels for the drop-down lists in this set of controls |
||Default| {code:javascript}selectors Div |
---|
| Description | ... See below. |
---|
|
strings Div |
---|
| Description | Labels for the drop-down lists in this set of controls |
---|
Default | Code Block |
---|
| strings: {
textFont: ["Default", "Times New Roman", "Comic Sans", "Arial", "Verdana"],
theme: ["Default", "Black on white", "White on black", "Black on yellow", "Yellow on black"]
} |
|
---|
| {code}|
||Example|{code:javascript} | Example | Code Block |
---|
| strings: {
theme: ["default", "black/white", "white/black", "black/yellow", "yellow/black"]
} |
|
---|
| {code} |
{div2}
h3. textSize
{div2:class=api-table}
||Description| Minimum and maximum settings for the text size range |
||Default| {code:javascript}textSize Div |
---|
| Description | Minimum and maximum settings for the text size range |
---|
Default | Code Block |
---|
| textSize: {
min: 1,
max: 2
}
|
|
---|
| {code}|
||Example| {code:javascript} | Example | Code Block |
---|
| {
textSize: {
min: 0.5,
max: 3
} |
|
---|
| {code}|
{div2}
h2. Selectors
{span:class=Selectors}[ top|#top]{span}
{include:_selectors intro}
The selectors supported by the Text Controls subcomponent are described below.
h3. lineSpacing
{div2:class=api-table}
||Description| Container for the line spacing controls (by default, a Include Page |
---|
| _selectors intro |
---|
| _selectors intro |
---|
|
The selectors supported by the Text Controls subcomponent are described below. lineSpacing Div |
---|
| Description | Container for the line spacing controls (by default, a text-field/slider |
---|
| |
||Default| | Default | ".flc-uiOptions-layout" |
---|
| |
||Example| {code:javascript} | Example | Code Block |
---|
| selectors: {
lineSpacing: "div.layout-controls-container"
} |
|
---|
| {code} |
{div2}
h3. textFont
{div2:class=api-table}
||Description| Container for the font family controls (by default, a drop-down list) |
||Default| textFont Div |
---|
| Description | Container for the font family controls (by default, a drop-down list) |
---|
Default | ".flc-uiOptions-line-text-font" |
---|
| |
||Example| {code:javascript} | Example | Code Block |
---|
| selectors: {
textFont: ".fontFamilyList"
} |
|
---|
| {code}|
{div2}
h3. textSize
{div2:class=api-table}
||Description| Container for the font size controls (by default, a textSize Div |
---|
| Description | Container for the font size controls (by default, a text-field/slider |
---|
| |
||Default| | Default | ".flc-uiOptions-line-min-text-size" |
---|
| |
||Example| {code:javascript} | Example | Code Block |
---|
| selectors: {
textSize: "#sizeInputs"
} |
|
---|
| {code}|
{div2}
h3. theme
{div2:class=api-table}
||Description| Container for the colour contrast controls (by default, a drop-down list) |
||Default| theme Div |
---|
| Description | Container for the colour contrast controls (by default, a drop-down list) |
---|
Default | ".flc-uiOptions-line-theme" |
---|
| |
||Example| {code:javascript} | Example | Code Block |
---|
| selectors: {
theme: "div.theme-list" |
|
---|
|
}{code}|{div2}
{div |