Include Page |
---|
| docs:sneak peek warningdocs: |
---|
| sneak peek warning |
---|
|
Div |
---|
class | Wiki Markup |
---|
{div:class=api-page | }
h1. fluid.model.resolvePathSegment(root, segment, create) Section |
---|
Column |
---|
|
|
Code Block |
---|
javascript | javascript | bgColor | white |
---|
borderStyle | none |
---|
{section}
{column:width=70%}
{code:javascript|borderStyle=none|bgColor=white}
fluid.model.resolvePathSegment(root, segment, create);
{code}
*File name:* {{Fluid.js
Parameters
Span |
---|
class | }}
h2. Parameters
{span:class=borderless-table
root
| }
|*{{root}}*| (Object) The object to
search segment
| search |
|*{{segment}}*| (String) The path segment to search for.
create
| |
|*{{create}}*| (boolean) If {{true}} and the requested path segment does not exist, an empty object will be created at the path.
Return Value
Span |
---|
|
Object | The object found at the requested path segment. |
|
Column |
---|
|
Example
Code Block |
---|
javascript | javascript | |
{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}