Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Include Page
sneak peek warning
sneak peek warning
{div:class=} h1.
Wiki Markup
Div
classapi-page

fluid.model.composeSegments(seg1,

seg2,

...)

{section} {column:width=70%} Compose any number of path segments, none of which may be empty {code:javascript|borderStyle=none|bgColor=white}

Section
Column
width70%

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

Code Block
javascript
javascript
bgColorwhite
borderStylenone

fluid.model.composeSegments(seg1, seg2, ...);
{code} *

File

name:

* {{

Fluid.js

}} h2. Parameters {span:class=

Parameters

Span
classborderless-table

} |*{{segN}}*|

segN

(String)

{{

fluid.model.composeSegments()

}}

accepts

any

number

of

string

arguments.

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

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);
{code}

This

example

will

prepend

the

given

namespace

string

to

the

function

name,

resulting

in

"fluid.expectFilledSelector".

{code:javascript}

Code Block
javascript
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}