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 |
---|
|
fluid.model.composeSegments(seg1, seg2, ...);
|
File name: Fluid.js Parameters Span |
---|
| 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 "." |
|
|
|
NotesNote 1Note 2Example Examples Code Block |
---|
|
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 |
---|
|
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. |