Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Include Page
docs:sneak peek warningdocs:
sneak peek warning

Compose any number of path segments, none of which may be empty


{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

}}

h2. Parameters

{span:class=borderless-table
}
|*{{segN}}*| (String) {{fluid.model.composeSegments()}} accepts any number of string arguments
.

Return Value

Div
class
Wiki Markup
{div:class=api-page
}

h1. fluid.model.composeSegments(seg1, seg2, ...)
Section
Column
width70%
Code Block
javascriptjavascript
bgColorwhite
borderStylenone
Span
class

segN

Span
classborderless-table

String

A string composed of all of the arguments, joined by "."

Column
width5%
Column

See Also

Examples

Code Blockjavascriptjavascript
.  |
{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 Blockjavascriptjavascript
 

{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}