Include Page |
---|
| docs:sneak peek warningdocs: |
---|
| sneak peek warning |
---|
|
Div |
---|
class | Wiki Markup |
---|
{div:class=api-page | }
h1. fluid.model.composeSegments(seg1, seg2, ...) Section |
---|
Column |
---|
|
|
Compose any number of path segments, none of which may be empty
Code Block |
---|
javascript | javascript | bgColor | white |
---|
borderStyle | none |
---|
{section}
{column:width=70%}
Compose any number of path segments, none of which may be empty
{code:javascript|borderStyle=none|bgColor=white}
fluid.model.composeSegments(seg1, seg2, ...);
{code}
*File name:* {{Fluid.js
Parameters
Span |
---|
class | }}
h2. Parameters
{span:class=borderless-table
segN
| }
|*{{segN}}*| (String) {{fluid.model.composeSegments()}} accepts any number of string arguments
. Return Value
Span |
---|
|
String | A string composed of all of the arguments, joined by "." |
|
Column |
---|
|
Examples
Code Block |
---|
javascript | javascript | . |
{span}
h2. Return Value
{span:class=borderless-table}
|*String*| A string composed of all of the arguments, joined by "." |
{span}
{column}
{column:width=5%}
{column}
{column}
h3. See Also
* [fluid.model.composePath]
* [fluid.model.resolvePathSegment]
* [fluid.model.parseEL]
{column}
{section}
----
h3. Examples
{code:javascript}
var nameSpace = "fluid";
var funcName = "expectFilledSelector";
var namespacedFuncName = fluid.model.composeSegments(nameSpace, funcName);
{code}
This example will prepend the given namespace string to the function name, resulting in "fluid.expectFilledSelector".
Code Block |
---|
javascript | javascript |
{code:javascript}
for (var key in obj) {
var valueBinding = fluid.model.composeSegments(listPath, key, fieldName);
...
}
{code}
This example constructs model paths based on the keys in an object.
{div}