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

{section}
{column:width=70%}

{code:javascript|borderStyle=none|bgColor=white}
fluid.model.resolvePathSegment(root, segment, create);
{code}
*File name:* {{Fluid.js

Parameters

}}

h2. Parameters

{span:class=borderless-table
}
|*{{root}}*| (Object) The object to
search
 search |
|*{{segment}}*| (String) The path segment to search for.
 |
|*{{create}}*| (boolean) If {{true}} and the requested path segment does not exist, an empty object will be created at the path.

Return Value

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

h1. fluid.model.resolvePathSegment(root, segment, create)
Section
Column
width70%
Code Block
javascriptjavascript
bgColorwhite
borderStylenone
Span
class

root

segment

create

Span
classborderless-table

Object

The object found at the requested path segment.

Column
width5%
Column

See Also

Example

Code Blockjavascriptjavascript
 |
{span}

h2. Return Value
{span:class=borderless-table}
|*Object*| The object found at the requested path segment. |
{span}

{column}

{column:width=5%}
{column}

{column}
h3. See Also
* [fluid.model.composePath]
* [fluid.model.composeSegments]
* [fluid.model.parseEL]
{column}
{section}
----

h3. Example
{code:javascript}
var atval = fluid.model.resolvePathSegment(component, thisSeg);
{code}
In this example, ...

{div}