This documentation is currently being moved to our new documentation site.

Please view or edit the documentation there, instead.

If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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

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

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

File name: Fluid.js

Parameters

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

Return Value

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

Examples

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".

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.

  • No labels