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
Compute a

{section}
{column:width=70%}
Compute a "nickname" given a fully qualified typename, by returning the last path segment.

{code
:javascript|borderStyle=none|bgColor=white}
fluid.computeNickName(typeName);
{code}
*File name:* {{FileName.js

Parameters

}}

h2. Parameters

{span:class=borderless-table
}
|*{{typeName}}*| (Type)
description

Return Value

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

h1. fluid.computeNickName(typeName)
Section
Column
width70%
javascriptjavascript
bgColorwhite
borderStylenone
Span
class

typeName

Span
classborderless-table

String

The last path segment of the specified typeName

Column
width5%
Column

See Also

Examples

Code Blockjavascriptjavascript
 description |
{span}

h2. Return Value
{span:class=borderless-table}
|*String*| The last path segment of the specified {{typeName}} |
{span}

{column}

{column:width=5%}
{column}

{column}
h3. See Also

{column}
{section}
----

h3. Examples
{code:javascript}
var shortName = fluid.computeNickName("fluid.uiOptions");
{code}
In this example, {{shortName}} would have a value of "uiOptions."


{code
:javascript
javascript
}
var nick = fluid.computeNickName("cspace.autocomplete.popup");
{code}
In this example, {{nick}} would have a value of "popup."

{div}