Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Div
classapi-page

fluid.model.composeSegments(seg1, seg2, ...)

Section
Column
width70%

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

Code Block
javascript
javascript
bgColorwhite
borderStylenonejavascript
fluid.model.composeSegments(seg1, seg2, ...);

File name: Fluid.js

Parameters

Span
classborderless-table

segN

(String) fluid.model.composeSegments() accepts any number of string arguments.

Return Value

Span
classborderless-table

String

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

Column
width5%

Column

See Also


Examples

Code Block
javascript
javascript
var nameSpace = "fluid";
var funcName = "expectFilledSelector";
var namespacedFuncName = fluid.model.composeSegments(nameSpace, funcName);

This example will prepend the given namespace string to the function name, resulting in "fluid.expectFilledSelector".

Code Block
javascript
javascript
for (var key in obj) {
    var valueBinding = fluid.model.composeSegments(listPath, key, fieldName);
    ...
}

This example constructs model paths based on the keys in an object.